BizTalk Issue:How to use substring function in orchestration

(In order to Enlarge images Please Right Click and Open images in New Tab).

Let us see


Just try with following things,
There’s a few things you can’t access directly it the Orchestration designer, like Generics and Typed Arrays.
If you need string.Split, you’ll have to use a helper class.

In a helper class add method like,

public static string GetSourceDate(string receiverGSSegment)
string srcDate = string.Empty;
if (!String.IsNullOrEmpty(receiverGSSegment))
srcDate = receiverGSSegment.Split(‘*’).ToArray()[4].Substring(0, 4) + ‘-‘ + receiverGSSegment.Split(‘*’).ToArray()[4].Substring(4, 2) + ‘-‘ + receiverGSSegment.Split(‘*’).ToArray()[4].Substring(6, 2);
return srcDate;

And use it in Orchestration shape like,




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s