BizTalk – Rename Output File Based on Some Attribute in Orchestration
- Create an Orchestration string variable (in this case testVAR)
- Add assignment shape with code below
- Change the send location output file name to %SourceFileName%
outputMessage = outputMessage ;
testVAR = xpath(outputMessage,"string(/*[local-name()='SomeName1' and namespace-uri()='SomeSchema']/*[local-name()='SomeName2' and namespace-uri()='']/*[local-name()='SomeName3' and namespace-uri()='']/text())");
outputMessage(FILE.ReceivedFileName) = testVAR + ".TXT";
No comments yet
Comments are moderated and appear once approved.