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.