Shivang
Shivang

Reputation: 251

How to retrieve filenames for a BizTalk Purchase Order

I am very much new to BizTalk Server, one of our clients want to know the filename of the purchase order given by them. Its already been processed in the system through BizTalk Server and the client has received the purchase order, but he wants to get the filename of that purchase order (or in short the whole file for that purchase order) as there was some issue with the cost.

How can I get it or what are the steps for doing it?

Note: I am new to BizTalk so not much experieced in asking questions related to it. But if you have any questions which I can answer, please feel free to ask.

Upvotes: 1

Views: 1083

Answers (1)

Dijkgraaf
Dijkgraaf

Reputation: 11527

If you want to get the received filename inside an Orchestration you need to use the message context property FILE.ReceivedFileName.

e.g.

   FileName = System.IO.Path.GetFileName((MessageName(FILE.ReceivedFileName));

If you want to set the filename in a send port to the received filename (or rather to what is in FILE.ReceivedFilename as you can set it yourself) then you need to use one of the predefined send Macros, in this case %SourceFileName%

If you want to see the filename in the BizTalk administration console, then you need to look at the message context and look for the ReceivedFileName property.

Upvotes: 0

Related Questions