Home Page › Forums › BizTalk 2004 – BizTalk 2010 › how to pass the file adapter drop location folder name into the orchestration in biztalk 2010?
- This topic has 4 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
August 22, 2013 at 10:31 PM #26126
I am relatively new to biztalk. I am building a biztalk solution that involves receiving an XML file through various feedhub locations. Hence, I am using a file adapter to receive a message. As more clients onboard this solution, I will be adding more one way file adapter receive locations. My question involves around how can I pass the drop location folder name into the single generic orchestration so I can tie some identity information to the message? I would truly appreciate some feedback from the Biztalk gurus out there.
-
August 24, 2013 at 2:17 PM #26127
Hi Ty,
This is a pretty straightforward answer to your question:
In your orchestration, you define a message associated with your receive port that activates your orchestration (let's call this message mInitOrch). Then, in an Expression shape, you can reference the property for this message that return the drop location folder name by using this statement:
vMyString = mInitOrch(BTS.InboundTransportLocation);
vMyString is a variable of type String in your orchestration.
I hope this helps.
-
August 24, 2013 at 2:36 PM #26128
Hi xman,
Thank You for your reply. Although the file name is accessible through the constructed message, the file name alone does not help me uniquely identify the drop location. How can I ensure that I can access the folder path so I can use some regular expression and parse some identity against the filepath? If the folder path is not accesible in the orchestration, can i assign some property to the receive location that i can access through the orchestration. Once again I appreciate your guidance.
Regard Ty
-
August 24, 2013 at 2:41 PM #26129
Actually sorry misread ur reply.I believe you have given me the answer I was waiting for. Thank you for your guidance.
-
-
-
September 5, 2013 at 7:24 AM #26140
If you are selecting File Adapter you can specify that Receive Pipeline is XML Pipeline and go to receive location and click on create your folder path and click on *.* on second line on send port.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.