Understanding The Requirement
To send an SMS in almost-realtime, the standard Phone field must have a number that starts with the country code, and there must be an existing Consent record that matches and is OPTED IN.
The Lead record does not need to sync into any of the DMOs yet, and it will trigger almost instantly. The question was whether this would work with the E.164 format, which includes the leading + symbol.
Platform Level Explanation
At the platform level, Salesforce Marketing Cloud supports the E.164 format for phone numbers. This format is widely used and recommended for international phone numbers, as it provides a standardized way of representing phone numbers.
The E.164 format includes the leading + symbol, which indicates that the number is in international format. This format is supported by most phone networks and is required for international SMS delivery.
Testing And Verification
A community member tested this format and confirmed that it works. Both the E.164 format and the international format without the leading + symbol work for sending SMS in almost-realtime via the Automation Event Triggered Flow.
The root cause of any issues with SMS delivery timing is often related to the phone number format and the presence of a valid Consent record.
Step-By-Step Solution
To send an SMS in almost-realtime via the Automation Event Triggered Flow using the E.164 format, follow these steps:
Example Code
// Example code to send SMS in almost-realtime using E.164 format // Set the phone number in E.164 format String phoneNumber = "+614xxxxxxxx"; // Set the message content String message = "Hello, this is a test message."; // Send the SMS using the Automation Event Triggered Flow // ...
Heads up: Make sure to test your SMS delivery in a non-production environment before deploying it to production.
Checklist
- Verify that the phone number is in E.164 format with the leading + symbol
- Ensure that there is a valid Consent record that matches and is OPTED IN
- Test the SMS delivery in a non-production environment
- Verify that the Automation Event Triggered Flow is set up correctly
- Test the SMS delivery with different phone number formats
Frequently Asked Questions
What is the E.164 format?
The E.164 format is a standardized way of representing phone numbers, which includes the leading + symbol.
Do I need to sync the Lead record into DMOs for SMS delivery?
No, the Lead record does not need to sync into DMOs for SMS delivery to work.
Can I use the international format without the leading + symbol?
Yes, both the E.164 format and the international format without the leading + symbol work for sending SMS in almost-realtime.
How do I test my SMS delivery in a non-production environment?
You can test your SMS delivery in a non-production environment by setting up a test Automation Event Triggered Flow and sending a test message to a phone number.
Need help shipping this in production?
Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.