- Go to CRM → Click on Send Template Message (example use case; can also be used in Automation Builder).
- Select the required Channel and choose the Template.
- Identify the phone number variable where users may enter numbers in different formats (with country code, symbols, spaces, or only 10 digits).
Apply Parse + Slice Functions #
- In the phone number field, add the required Country Code (e.g.,
91). - Click on the Function option.
- Select the Slice function.
- Inside the Slice function, add the Parse Number function.
- Map the user’s phone number variable inside Parse Number.
How It Works #
- The Parse Number function extracts only numeric characters from the input (removes symbols, spaces, or special characters).
- The Slice function then extracts the last 10 digits from the parsed output to standardize the phone number format.
- Click Run to preview the result.
- Click Save to apply the configuration.
This method ensures consistent and correctly formatted phone numbers for CRM messages, WhatsApp communication, and automation workflows, regardless of how users enter their numbers.