Salesforce
How It Works
- Capacity integrates directly with the Salesforce API using an External Client App in your Salesforce org
- The app authenticates using the OAuth 2.0 Client Credentials Flow, running as a dedicated Salesforce user
- Capacity uses this connection to import your Cases, Calls and Chats and their associated metadata
This article shows you how to configure Salesforce to integrate with Capacity and import your Calls and Chats.
Before You Begin
Before you can integrate Salesforce with Capacity, you'll need:
- A Salesforce account with System Administrator privileges (or equivalent permission to create users and manage External Client Apps)
- Your Salesforce domain (My Domain URL), for example
mycompany.my.salesforce.com
Create a User
You'll need to create a dedicated user for Capacity. The External Client App runs as this user, so it needs access to every object required to import Cases, Calls and Chats. Using a dedicated user, rather than a personal account, means the integration isn't affected if someone leaves or changes role.
- Log in to Salesforce and open Setup
- In the left-hand menu, expand Administration, then Users, and select Users
- Click New User
- Enter the user details as follows:
| Name | Value |
|---|---|
| First Name | Enter a first name for the integration user, e.g. Capacity |
| Last Name | Enter a last name, e.g. Integration |
| creovai-support@capacity.com | |
| Username, Alias, Nickname | Leave auto-populated |
| User License | Salesforce |
| Profile | Select the appropriate profile (usually System Administrator). The profile must allow the app to access all objects required to import Cases, Calls and Chats |
- Click Save
Create App
- In Setup, go to Platform Tools > Apps > External Client Apps > External Client App Manager
- Click New External Client App
- Under Basic Information, enter the following:
| Name | Value |
|---|---|
| External Client App Name | Capacity CI Connected App |
| API Name | Capacity_CI |
| Contact Email | creovai-support@capacity.com |
| Distribution State | Local |
- Expand API (Enable OAuth Settings)
- Enter the following:
| Name | Value |
|---|---|
| Callback URL | https://login.salesforce.com/services/oauth2/success |
| OAuth Scopes | Select:
|
- Tick Enable Client Credentials Flow
- Click Create
Configure App Policies
Once the app has been created, update its policies so it runs as the user created above and isn't affected by interactive session or IP login restrictions.
- Open the app and select the Policies tab
- Click Edit
- Expand OAuth Policies
- Under OAuth Flows and External Client App Enhancements:
- Tick Enable Client Credentials Flow
- Set Run As to the integration user you created in the previous section
- Under App Authorization:
- Select Immediately expire refresh token
- Set IP Relaxation to Relax IP restrictions
- Click Save
Run As User
Ensure the Run As user has create access to the following objects at a minimum:
- Tethr Call
- Tethr Event
- Case
- Lead
- Opportunity
The same user (or profile the user belongs to) will also need to be assigned to the External Client App created above
Retrieve the Consumer Key and Secret
- Staying within the app, go back to the Settings tab
- Expand OAuth Settings
- Click Consumer Key and Secret
- Salesforce may ask you to verify your identity before showing the values
- Copy the Consumer Key and Consumer Secret and save them securely
What to Share with Capacity
Once the app is configured, please share the following information with Capacity:
| Item | Description |
|---|---|
| Consumer Key | Consumer Key from the Capacity CI Connected App |
| Consumer Secret | Consumer Secret from the same app |
| Salesforce Domain | Your Salesforce Domain URL. Found in Company Settings >> My Domain
|
