how to pass the file adapter drop location folder name into the orchestration in biztalk 2010?

Home Page Forums BizTalk 2004 – BizTalk 2010 how to pass the file adapter drop location folder name into the orchestration in biztalk 2010?

Viewing 2 reply threads
  • Author
    Posts
    • #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.

    • #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.

      • #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

        • #26129

          Actually sorry misread ur reply.I believe you have given me the answer I was waiting for. Thank you for your guidance.

    • #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.

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.