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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandip G PatilRank #1,083 · 1.8K reputationPosted Mar 22, 2017, 1:24 AM EDT
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;
}