Constructing File Names at Send Port Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Constructing File Names at Send Port This topic has 3 replies, 1 voice, and was last updated 9 years, 8 months ago by community-content. Viewing 1 reply thread Author Posts May 29, 2008 at 1:03 AM #19785 community-content 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 May 29, 2008 at 1:42 AM #19786 community-content Hi, take as ABC_%date%.csv or what is ABC ..it is a variable or constant … if constant use above May 29, 2008 at 3:25 AM #19789 community-content ABC is constant and %date% does not work. May 30, 2008 at 2:42 AM #19804 community-content 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] Author Posts Viewing 1 reply thread The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies. Log in / Register