How to get the sourcefilename in Biztalk FTP After Put Command

Home Page Forums BizTalk 2004 – BizTalk 2010 How to get the sourcefilename in Biztalk FTP After Put Command

Viewing 1 reply thread
  • Author
    Posts
    • #18965

      Hi,

      I am using FTP Send Adapter to send the file and rename that file using After put command.

      I configured Biztalk FTP Send Adapter

      Target FileName : %SourceFileName%

      Userid:

      Password:

      AfterPut : RNFR %SourceFileName% ; RNTO %SourceFileName%.txt

       

      but the FTP Command is not accepting %SourceFileName% its giving error.

      How to rename the File?

      or is there any way to use the macro inside FTP After Command?

    • #19135

      I have only been able to perform this within an Orchestration using the FTP properties.

      I build the output file name in an Expression Shape, then in the Construct Message shape, I add in the code:

      msgOutput = msgInput;
      msgOutput(FILE.ReceivedFileName) = fileName;

      When the FTP Send adapter sees this, the %SourceFileName% macro will name it accoring to my ‘fileName’ var.

      HTH!
      -Rich

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