BizTalk - Can I get the original file name in Orchestration

Asked By Sky Lin on 15-Jul-09 10:21 AM

I want to use the original file name and message id in orchestation to do something, is there any way to get it?


Thanks.


Yes - [)ia6l0 iii replied to Sky Lin on 15-Jul-09 06:30 PM

You can use the %SourceFileName% and the %MessageID%  filename macros

How - Sky Lin replied to [)ia6l0 iii on 15-Jul-09 06:59 PM

I know %SourceFileName% can be configured in BizTalk Administration console.

But I'm not sure how to get it in Orchestration,

Can I use it like varName= %SourceFileName%

Or could you provide the sample code about how to get the name.

Thanks.

File name in orchestration - Frederik Van Lierde replied to Sky Lin on 19-Aug-09 11:06 AM

If your message is arriving from a file adapter then MessageVarName(File.ReceiveFileName)

FTP:   MessageVarName(FTP.ReceiveFileName)


Frederik Van Lierde
Silversands Associates
http://www.SilversandsAssociates.com