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:
NameValue
First NameEnter a first name for the integration user, e.g. Capacity
Last NameEnter a last name, e.g. Integration
Emailcreovai-support@capacity.com
Username, Alias, NicknameLeave auto-populated
User LicenseSalesforce
ProfileSelect 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:
NameValue
External Client App NameCapacity CI Connected App
API NameCapacity_CI
Contact Emailcreovai-support@capacity.com
Distribution StateLocal
  • Expand API (Enable OAuth Settings)
  • Enter the following:
NameValue
Callback URLhttps://login.salesforce.com/services/oauth2/success
OAuth ScopesSelect:
  • Manage user data via APIs (api)
  • 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:

ItemDescription
Consumer KeyConsumer Key from the Capacity CI Connected App
Consumer SecretConsumer Secret from the same app
Salesforce DomainYour Salesforce Domain URL. Found in Company Settings >> My Domain
  • Production example: mycompany.my.salesforce.com. 
  • Sandbox example: mycompany--company.sandbox.my.salesforce.com

Was this article helpful?