Send Pipline "Create Remote folder"

Home Page Forums BizTalk 2004 – BizTalk 2010 Send Pipline "Create Remote folder"

Viewing 1 reply thread
  • Author
    Posts
    • #19047

       
      Hi all

      I have a BizTalk 2004 project..
      I have a send pipeline for sending Ascii files to a folder.

      How can biztalk create a folder for each file..

       I mean I need a way of making Biztalk process to create a remote folder base on individual file name..

      a tutorial will be nice.. or pice of code..

      Thanks in Advance

    • #19227

      Hi Anon,

      It would be possible to write each output message to an individual folder, however I would probably question why you want to do that – maybe there is a better design for your solution?

      If you still need this functionality, I would recommend setting the SourceFileName context property of the message before it leaves an orchestration as follows:

      outputMsg(FILE.SourceFileName) = "C:\OutputFolder\Somewhere\"+ System.Guid.NewGuid() +".xml";

      and then using a custom encoding pipeline component on the send pipeline to read the SourceFileName property and create the directory structure if it doesn’t exist. If you then use a FILE adapter, the file should be delivered to the correct directory.

      Hope that helps, Nick.

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