Renaming files with MessageID

Home Page Forums BizTalk 2004 – BizTalk 2010 Renaming files with MessageID

Viewing 3 reply threads
  • Author
    Posts
    • #25127

      I have File Receive Locations pointed to different folders with PassThru Receive

      I do not want to do anything with the contents of the file.  The files can be quite large.

      I want to move the file from the receive locations to a common folder.   I need to make sure that the file name is unique.   I then want to get the file name I created to pass to a process outside of bizTalk.

      I set up a send port as pass thru transmit using this as the file name

      %MessageID%_%SourceFileName%.

      How can I capture the new file name or how can I accomplish this?

    • #25149

      Hi,

       

         You can save your new filename in a string variable declared in your Orchestration and use Dynamic Routing pattern to transmit your message to that given filename. Here’s a tutorial on how to implement Dynamic Routing in an orchestration:

       

      http://www.codeproject.com/KB/biztalk/DynamicRouting.aspx

       

         Daniel.

       

    • #25155

      You can create dynamic port in your orchestration where you can define complete location of file (including file name).

      Here is a trick. File name is of your own choice. you can create in any way and save at any place for future processing. Just pass that name in the Address of dynamic port to create file with same name.

      you have to set the Microsoft.XLANGs.BaseTypes.Address property of your dynamic port with the complete location including file name where you want to place the file

    • #50206
      biztalkgurus

        Telling Memories Among Southern Women: Domestic Workers and Their Employers in the Segregated South by Susan Tucker · 9780807127995

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