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
Please note that the images below are based on the Enhanced Profile List View being enabled. Learn how to do that here.
Click on ‘Public Access Settings’
On the next screen, click 'Object Settings’
On the Object settings page, scroll down and click on ‘SMS Events’. This will take you to another page that has the following Checkbox fields – please check enabled:
- Read
- Create
The screenshot below shows the required settings.
If these boxes are not enabled, you'll need to click 'Edit" to be able to tick them, then click save.
Go back to the profiles page (by clicking 'Profile Overview' in the current screen) and then click on Apex Class Access:
Once on this page click 'Edit,' then 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. Go back to the profile overview page and click on “Assigned Users” next to profile overview.
On the next page click Edit next to Site Guest User, Mercury SMS.
Scroll down to Locale Settings and select the appropriate Time Zone and Locale settings, then click Save
Now go back to Sites and click Activate next to your Force.com site.