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 This topic has 1 reply, 1 voice, and was last updated 9 years, 1 month ago by community-content. Viewing 1 reply thread Author Posts February 21, 2008 at 4:29 AM #18965 community-content 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? March 26, 2008 at 2:57 PM #19135 community-content 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 Author Posts Viewing 1 reply thread The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies. Log in / Register