How to Integrate Birdie + Salesforce
Mariana Carrero Rodrigues
Last Update 2달 전
This integration can import the following data from your SalesForce account:
Case: Represents a case, which is a customer issue or problem.
CaseComment: Represents a comment that provides additional information about the associated Case.
EmailMessage: Represents an email in Salesforce.
Account: Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).
To setup your Salesforce integration, you will need to configure a connected app.
For the official documentation on setting up a connected app, see the following docs.
For Birdie to authenticate as your connected app, you'll need to generate one of the credentials listed below. The one you will use may depend on how your IT department define its security policies. Later on, we will walk you through on how to configure a connected app, and then walk through the process of generating these credentials.
Find Salesforce documentation here.
Domain: Something like {DOMAIN}.salesforce.com.
Client ID: A public key for authenticating as the connected app. Also called consumer key.
Client Secret: A private key for authenticating as the connected app. Also called consumer secret.
Find Salesforce documentation here.
Domain: Something like {DOMAIN}.salesforce.com.
Client ID: A public key for authenticating as the connected app. Also called consumer key.
Client Secret: A private key for authenticating as the connected app. Also called consumer secret.
Refresh Token: A token generated with the Client ID and secret.
Find Salesforce documentation here.
Domain: Something like {DOMAIN}.salesforce.com.
Client ID: A public key for authenticating as the connected app. Also called consumer key.
Client Secret: A private key for authenticating as the connected app. Also called consumer secret.
User: The user to authenticate as for the connected app.
Password: The password of the user to authenticate as for the connected app.
We recommend following the setup steps for the Refresh Token Flow.
In the left hand pane, go to Platform Tools > Apps > App Manager:
On the new connected app page, fill in the following required fields under Basic information:
Connected App Name: Birdie Integration
API Name: Birdie_Integration
Contact Email: [email protected]
Scroll down to API (Enable OAuth Settings) and select Enable OAuth Settings. Fill in the following information:
Callback URL: https://login.salesforce.com
Select the following OAuth Scopes:
Manage user data via APIs (api);
Manage user data via Web browsers (web);
Perform requests at any time(refresh_token, offline_access)
Uncheck Require Proof Key for Code Exchange (PCKE) Extension for Supported Authorization Flows
Check Enable Client Credentials flow (Optional - for client credentials flow)
Click save at the bottom of the page
After you've saved your connected app, you'll be redirected to the "View" for your connected App.
You should navigate to the Manage screen for your connected app, either by clicking on the View page, or by selecting it from the dropdown for the App inside the app manager.
You'll be redirected to the Page to the management page for your app. From here, you can click the Edit Policies button:
This will redirect you to the page where you can manage a couple of safety configurations for your connected app.
Some configurations that we recommend you to double check:
Permitted Users: All users may self-authorize.
IP Relaxation: Relax IP restrictions (Optional - Only if your organization uses IP Enforcement).
Refresh token policy: Refresh token is valid until revoked (Optional - Avoids needing to frequently regenerate the refresh token).
Clients Credentials Flow - Run as: You'll need to select a user that has API permissions and permissions to access the connected app (Optional - only for client credentials flow).
Copy and save these for later, they are your Client ID and Client Secret we mentioned in the start of this section.
If you have opted to authenticate with the Client credentials flow, send these values along with your domain to the Birdie team.
If you have opted to authenticate via a refresh token (which is simpler since it doesn't require you to configure a user), you'll need to do two more steps.
First, using the template we will share below, generate a URL and access it via your web browser:
Next, open this link in your web browser. It will ask you to authorize Birdie to access information in your Salesforce account:
Once you do that, you'll be redirected to the Salesforce Login Page. Notice that the URL inside your browser has a URL in the following pattern:
Please copy the code from the URL, we will use it to generate your refresh token.
Next, build the folowing post POST request and run it your terminal:
This will return a JSON result that will look something link this:
Please save the refresh token, and send it along with the client id, secret and domain to the Birdie team.
