To enable Inbound SMS functionality, a Force.com Site needs to be configured. Step 2 of the Setup & Configuration page is to configure this Site.
Go to Setup and type ‘Sites’ in the left-hand Quick Search box. Then click ‘Sites’ as shown below:
Register a Force.com Domain
Note: This step only applies if you do not already have a Force.com Domain.
To register a Force.com Domain, follow the steps below:
- Enter [Your Company Name] into the text box and click ‘Check Availability’
- If the Force.com Domain Name is available, accept the Terms of Use checkbox and click ‘Register My Force.com Domain’. If it’s not available, choose another name for your Domain, such as an abbreviated or extended version of your business name.
Once you have a registered Domain, you will be able to create a new Force.com Site.
Create a Force.com Site
Click the ‘New’ button to create a new Site.
Configure your Site as shown below and click ‘Save’.
Granting the Site Guest User Access
Click on ‘Public Access Settings’
On the next screen, click ‘Edit’
Within Platform Event Permissions, ensure ‘SMS Events’ has the following Checkbox fields set to TRUE:
- Read
- Create
The screenshot below shows the required settings.
Click Save.
Next, scroll down to the ‘Enabled Apex Classes’ related list and click Edit.
Select ‘mercury.mercuryReply’ from the list of Available Apex Classes and move it across to the Enabled Apex Classes column, and click Save.
You will now need to adjust the Time Zone and Locale settings for the Mercury Site Guest User. To do this, click the ‘View Users’ button.
Click Edit next to the Mercury SMS Site Guest User
Scroll down to Locale Settings and select the appropriate Time Zone and Locale settings, then click Save