Re: Retrieving Partial File name from the Full file path in an Orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Retrieving Partial File name from the Full file path in an Orchestration Re: Retrieving Partial File name from the Full file path in an Orchestration

#25790

Hi Abhishek.

 

   Didn’t you post something similar in an earlier thread on this forum? Anyway, you can do something like the following code in an Expression shape:

MyVariable = mIncomingMessage(FILE.ReceivedFileName);

MyVariable = MyVariable.Substring(MyVariable.LastIndexOf(@”\”) + 1);

   MyVariable is an orchestration variable of type System.String, and mIncomingMessage is the message type of the schema associated with the incoming message that triggers your orchestration.

 

   Hope this helps,

 

   Daniel.