Skip to main content

Salesforce Integration

Billable Operation

You will be charged 1 AI unit per created comment, or per updated comment (based on its unique ID) if its text was modified.

The Re:infer Salesforce Integration provides a convenient and easy-to-setup way to sync your Salesforce communications data into Re:infer in real time. The integration is capable of syncing emails and other communications data.

Overview

The Salesforce Integration is a managed pipeline running on the Re:infer cloud that can be configured to extract pieces of communications data from Salesforce objects without any development needed.

Once the integration is configured it will continuously poll for the configured objects and fields in Salesforce, clean them, enrich them with object metadata and convert them to Re:infer comment objects. The Re:infer comments will be available on the web interface and from the API to any user with the right access.

Access to Salesforce data via the Salesforce Integration is managed through Salesforce Connected Apps and authenticated with OAuth2, giving you full control of when and how much you give Re:infer access to your data.

Salesforce Integration Architecture Overview
Salesforce Integration Architecture

Creating a Connected App

In order to provide Re:infer access to your Salesforce instance, a Salesforce administrator will need to create a Connected App.

It's worth familiarising yourself with the concepts of Connected Apps in the above link, but to set up the Re:infer Salesforce Integration the following steps should be sufficient. These steps should be completed using the same account that the Connected App will be authenticated with.

Integration User

Any Salesforce user with the right access to the data you'd provide to Re:infer can be used to authenticate the integration. In general, it's recommended to use a dedicated integration user for this so that the Salesforce Integration is not tied to a specific person's account. You can read more about Salesforce's recommendations on the matter here.

  1. In your Salesforce Setup, under Apps, select App Manager and click on New Connected App.
Create a new Connected App
Create a new Connected App in Salesforce
  1. Follow the guidance from Salesforce and fill in the required information, such as App Name, API Name and Contact Email. The following is an example:
Required information for a Connected App
Example required information
  1. Select the checkbox Enable OAuth2 Settings, this will open up a new section of options.

  2. Under Callback URL, insert the following line, replacing <mydomain> with your tenant domain: https://<mydomain>.reinfer.io/external/salesforce/oauth2/callback.

  3. The following scopes are required for the Salesforce Integration to work. Add them to Selected OAuth2 Scopes.

OAuth2 Scopes
Manage user data via APIs (api)
Perform requests on your behalf at any time (refresh_token, offline_access)
OAuth2 Settings for a Connected App
The required OAuth2 settings for the Connected App
  1. You do not need to change any of the other settings. Click Save at the bottom of the page to create the Connected App.

  2. Take note of the Consumer Key and Consumer Secret of the Connected App you just created. You will need to send them to us to set up the integration.

Connected App Consumer Key and Consumer Secret
Consumer Key and Consumer Secret

Salesforce Integration

Setup

Contact Us

The Salesforce Integration will be set up by a Re:infer engineer using the information you provide.

Once you created the Connected App, please contact support with the following details.

Connection Details

NameDescription
Consumer KeyA long string of letters and numbers, found on the page for the Connected App
Consumer SecretA long string of letters and numbers, found on the page for the Connected App
Instance URLYour Salesforce instance URL, e.g. um6.salesforce.com, see Salesforce documentation for how to find it

Salesforce Objects

The Salesforce Integration can be configured to poll for any of your standard or custom Salesforce objects. For each object you would like to sync into Re:infer, please provide the Salesforce API names of the objects and its fields.

Permissions

Please ensure that the user used to authenticate the integration has "Read" and "View All" access to the objects and "Read" access to the fields you would like to sync into Re:infer.

OAuth2 Authentication

The integration needs to be authenticated to get access to your Salesforce data. This is done through OAuth2 with an authorized Salesforce account. You should authenticate the integration using the same account that was used to set up the Connected App.

  1. Navigate to the authentication URL that we provided. It will look like this:
https://<mydomain>.reinfer.io/integrations/<project-name>/<integration-name>/oauth2/authenticate

where <mydomain> is your tenant domain, and <project-name>/<integration-name> are the project and name of your Salesforce Integration.

  1. You will be automatically redirected to a Salesforce login page. Log in with the Salesforce account that will provide access to the integration. The browser will redirect to a confirmation page.
Salesforce OAuth2 Login Page
Salesforce OAuth2 Login Page
  1. On the confirmation page, approve the requested permissions.
Salesforce OAuth2 Confirmation Page
Salesforce OAuth2 Confirmation Page
  1. Once done, you should be redirected back to https://<my_tenant>.reinfer.io with a notification indicating the integration was configured successfully.