BizTalk Issue:How to use substring function in orchestration shape?
Plesae suggest solution
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandip G PatilPosted Mar 22, 2017, 5:24 AM
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;
}