Install and configure the Revenue Grid Salesforce Scheduler Adapter (direct scenario)#
Set up the integration between Salesforce Scheduler and Revenue Grid by installing and configuring the Revenue Grid Salesforce Scheduler Adapter (SSA).
The Salesforce Scheduler integration relies on specific Salesforce objects and classes. To simplify setup, Revenue Grid provides a secure Salesforce managed package that includes all required components and complies with Revenue Grid Privacy & Security policies.
There are two integration scenarios between Revenue Grid and Salesforce Scheduler:
Direct — without the Revenue Grid widgets
Indirect — with the Revenue Grid widgets
This article describes the setup for the Direct scenario. For the version with widgets, see Install and configure the Revenue Grid Salesforce Scheduler Adapter (indirect scenario).
Important
This article describes configuration for SSA package version 1.35 and later. For version 1.30 or earlier, see this article.
Setup overview#
Complete the following steps to install and configure the Salesforce Scheduler Adapter integration:
Step 1: Complete pre-installation setup#
Complete the following tasks before installing packages and configuring the integration:
Step 2: Install the Salesforce Scheduler Adapter managed package#
Open the installation link for the latest Revenue Grid SSA managed package:
Sign in to Salesforce using an account with System Administrator permissions.
Choose the installation access level:
Option
Description
Install for Admins Only
Grants access to the package only to users with the System Administrator profile.
Install for All Users
Grants access to the package to all users in the org.
Install for Specific Profiles (recommended)
Grants access to the package only to selected user profiles. Use this option to limit access to only those users who require the Revenue Grid integration.
(If selected Install for Specific Profiles) Set access for the required profiles using the provided controls. For detailed instructions, see Installing Packages.
Select I acknowledge that I’m installing a Non-Salesforce Application that is not authorized for distribution as part of Salesforce’s AppExchange Partner Program.
Select Install.
When the installation is complete, select Done.
You will receive a confirmation email from Salesforce once the package upgrade is complete.
“This package can’t be installed” error
If you encountered the “This package can’t be installed” error during installation, most likely the Publish Appointments as Platform Events setting is not enabled in Salesforce Scheduler settings. Please, enable the setting and retry installation. For instructions, see Enable Salesforce Scheduler settings.
Step 3: Configure the Salesforce Scheduler Adapter integration#
After installing the SSA managed package, complete the following configuration steps:
Grant access to modify Named Credentials and External Credentials
Assign the Lightning Scheduler RG Extension User permission set
Edit the SSA named credentials#
Open the Salesforce Setup page.
In the Quick Find field, search for Named Credentials and open the page.
Find Revenue Grid Named Credentials SSA in the list and, in the Actions menu next to it, select Edit.
Replace the URL with the value of your Revenue Grid tenant URL, and click Save.
Open Revenue Grid External Credential SSA.
Under the Principals section, in the Actions column, select Edit next to the REVGRDPrincipal.
In the Edit Principal dialogue, click the Add button two times to add two parameters.
Use exact casing for parameter names
Enter the parameter names exactly as shown:
client_secretandclient_id. These values are case-sensitive—do not change the casing in any way. Any variation will cause authentication in Revenue Grid to fail.For the first parameter:
In the Name field, enter
client_secret.In the Value field, enter the value of the client secret.
For the second parameter:
Click Save.
Create a permission set#
In the Quick Find field, search for Permission Sets and open the page.
Click New.
In the Label field, enter a name for the permission set (for example, Revenue Grid access).
Click Save.
On the permission set page, click View Summary.
Under Permission Set Information, select Object Permissions, then click Edit.
Scroll to User External Credential. In the Read column, click the edit icon .
Select the checkbox that appears, then click outside the field to exit edit mode.
Click Save.
Back to the page of the created permission set and under Apps, open External Credential Principal Access.
Click Edit.
In the Available External Credential Principals list, select RG_Ext_Creds - RVGRDPrincipal (A), and click Add (B).
Click Save.
Grant access to modify Named Credentials and External Credentials#
Assign the permission set to users#
Assign the Lightning Scheduler RG Extension User permission set#
Complete this step only if you need to grant access to the SSA managed package to users who were not included in the original installation scope.
For example:
the package was installed using Install for Admins Only, and you now need to grant access to non-admin users.
the package was installed using Install for Specific Profiles, and you now need to grant access to users outside those profiles.
The Lightning Scheduler RG Extension User permission set grants the permissions required to use SSA, including read and edit access to ServiceAppointment records and access to the managed package Apex classes.
In the Quick Find field, search for Permission Sets, then open Permission Sets.
Open the Lightning Scheduler RG Extension User permission set.
Select Manage Assignments.
Select Add Assignment.
Select the users to assign the permission set to, then select Next.
Select Assign.
When the assignments are complete, select Done.
Configure the custom Apex class#
To retrieve Salesforce Scheduler time slots accurately, configure the custom Apex class included in the managed package within the Salesforce scheduling policy settings.
Open the Salesforce Setup menu.
In the Quick Find field, search for Scheduling Policies, and open the page.
Click Edit next to the scheduling policy marked as Is Default.
In the Check External Systems for Resource Availability field, enter the Apex class:
ServiceResourceScheduleHandlerImpl.Click Save.
Important
If your flows use additional scheduling policies, repeat steps 4–6 for each.
Add a Remote Site Setting#
Connect the SSA#
In the Quick Find field, search for Installed Packages, and open the page.
Select Configure next to the RG Salesforce Scheduler Adapter package.
Click Open Configuration.
Under Integration User, search for and select the dedicated integration user.
Click Connect.
After a successful connection, the connection status will update accordingly.
Verify the connection status in Revenue Grid#
Sign in to the Revenue Grid web app.
Open Settings from the profile menu.
In the Personal settings, open My connectivity, and check the CRM configuration status.
If the connection is unsuccessful, please contact Revenue Grid Support.