Constructing File Names at Send Port

Home Page Forums BizTalk 2004 – BizTalk 2010 Constructing File Names at Send Port

Viewing 1 reply thread
  • Author
    Posts
    • #19785

      Hi,

      I have an requirement to create file name at Send port with following format:

      ABC_YYYYMMDD.csv

      I am able to create the file name using “%datetime%.csv”.

      Can anyone has any idea how could I create the file with required format?

      Regards,

      Babin

    • #19786

       Hi,

      take as ABC_%date%.csv

      or

      what is ABC ..it is a variable or constant …

      if constant use above

      • #19789

         ABC is constant and %date% does not work.

        • #19804

           My method is to assign the file name in an orchestration (message assignment shape) using the promoted FILE>ReceivedFileName property of the outgoing message e.g.

          msg(FILE.ReceivedFileName) = “ABC_” + System.DateTime.Today.ToString(“yyyyMMdd”) + “.csv”;

          . You can then use the %SourceFileName% macro in the send port.

          Andy Duke

          [email protected]

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