Next you need to configure a Force.com site to enable inbound SMS functionality, and we'll do that in four parts:
IMPORTANT - Make sure to carefully follow all the steps below so your Force.com site is configured and activated correctly. If you skip any part of the configuration, the SMS replies you receive will come through to the MessageMedia Hub, but they won't be pushed through to Salesforce. |
Register a Force.com Domain
1. Navigate to Salesforce Setup using the cog icon in the navigation ribbon.
2. Type Sites in the Quick Find box, then select Sites from the setup menu on the left:
3. Enter your company name in the URL text box and click Check Availability. If the domain isn't available, adjust it until you find an available domain - If this section already shows a registered site domain for your company, skip to Create a Force.com Site.
4. Accept the Terms of Use checkbox and click Register My Force.com Domain:
5. You'll now see your new Salesforce site domain listed:
For more information on registering a Salesforce site domain, please see this Salesforce article.
Create a Force.com Site
1. Click the New button in the Sites section header:
2. Set the site fields as shown in the below table and screenshot, then click Save:
Field | Value |
Site Label | Mercury SMS |
Site Name | Mercury_SMS |
Site Contact | Set this as your Salesforce system administrator or another appropriate user |
Default Record Owner | Set this as your Salesforce system administrator or another appropriate user |
Default Web Address | Mercury |
Active Site Home Page | InMaintenance |
Allow Only Required Cookies for this Site | Checked |
Adjust Public Access Settings
Adjusting Public Access Settings will take you to a profile page; this profile page will look different depending on whether the Enhanced Profile User Interface setting is enabled in your Salesforce org. To check whether or not this setting is enabled, or to enable it, see this article.
Select the option that matches your Salesforce org:
Enhanced Profile User Interface is ENABLED
Enhanced Profile User Interface
1. On the Mercury SMS site that was created, click the Public Access Settings button:
2. Type SMS Events into the Find Settings box, and select SMS Events from the list:
3. Click the Edit button, check the Read and Create checkboxes, then click Save:
4. In the Find Settings search box, type Apex Class and select Apex Class Access:
5. Click the Edit button, select mercury.mercuryReply from the list of Available Apex Classes on the left, and move it to the Enabled Apex Classes list on the right. Then click Save:
6. Click the Profile Overview link in the breadcrumbs menu:
7. Click the Assigned Users button:
8. Continue to Set Time Zone and Locale Settings.
Enhanced Profile User Interface is DISABLED
Standard Profile User Interface
1. On the Mercury SMS site that was created, click the Public Access Settings button:
2. Click the Edit button in the Profile Detail section:
3. On your keyboard, select CTRL + F to open the browser finder and search for SMS Events, or scroll down to "SMS Events" in the Platform Event Permissions section.
4. Check the Read and Create boxes next to SMS Events:
5. Scroll down to the bottom of the page and click the Save button:
6. Click Enabled Apex Class Access in the Quick Links at the top of the Profile page:
7. Click the Edit button in the Enabled Apex Class Access header:
8. In the left column, scroll to find and select mercury.mercuryReply. Click the right arrow to move this class to the enabled classes column on the right. Click the Save button:
9. Next, click the View Users button at the top of the Mercury profile page:
10. Continue to Set Time Zone and Locale Settings.
Set Time Zone and Locale Settings
1. Click the Edit link next to Site Guest User, Mercury SMS:
2. Scroll down to Locale Settings.
3. Select the appropriate Time Zone and Locale settings:
4. Click the Save button.
Comments
0 comments
Article is closed for comments.