Example 2: Phone number format is 020 7123 7805

Phone numbers are stored in a regional format with extra characters that may not be included when converted to an E.164 format. InteractionSync needs this phone number formatted as tel:+442071237805, but in Dynamics it is stored as 020 7123 7805. The key differences are that we have the addition of the United Kingdom country code (+44) as well as no leading zero on the London area code (020). The other difference is that the number is stored in Dynamics with the spacing above which impacts for the formatting. Below is the Architect Expression to accomplish this format:

"0" + Substring(Call.Ani, 7, 2) + " " + Substring(Call.Ani, 9, 4) + " " + Substring(Call.Ani, 13, 4)