Salesforce Integration allows you to post leads to Salesforce via Salesforce' REST API. To set up the integration primary actions are required:
- Create a Connected App within your organizations Salesforce application
- Create a Salesforce Integration within the Integration Hub within your Integrate application
To begin, we'll cover the creation of a Salesforce Connected App within your Salesforce organization.
- Login to your Salesforce application
- Within Salesforce, navigate to 'Setup' if you are not already there
- From the Lightning Search, search for 'App' and click 'Apps' from the available available results
From the Apps page, scroll down if necessary to the Connected Apps section, and click New
We will only be entering the required fields on the Connected App:
Enter a Connected App Name, for instance, "Integrate". An appropriate API Name will automatically be generated as a result
Under Contact Email, enter firstname.lastname@example.org
Check the Box to Enable OAuth Settings
For Callback URL, enter the following url: https://app.integrate.com/settings/integration-hub/salesforce-callback
Within Available OAuth Scopes, choose to add 'Access and manage your data (api)' to the Selected OAuth Scopes. This will ensure that Integrate has the ability to create leads within Salesforce. Also add 'Perform request on your behalf at any time' this allows us to get refresh token when authentication is expiring.
- Your settings should look like this:
- When you are finished, scroll to the bottom and click Save
- Your Connected App is now created. There are a few pieces of information we will want to copy for use in the next step of the guide:
- Click on the Connected App Name you created in the previous step
- Copy down the Consumer Key, and Consumer Secret listed within your new Connected App - it should look something like this:
Next, we'll cover the process of creating the Salesforce Integration within your Integrate application:
- Click the Settings (gear) icon.
- Click Integration Hub.
- Locate the Salesforce Integration in the Integration Library and click on the + symbol to add an integration.
- In Authentication tab – add your Salesforce Connected App details.
- Your Client ID and Client Secret, can be found within your Connected App you created within Salesforce in the previous section.
- In Response Mapping tab – you can modify how Integrate should interpret the response codes Salesforce provides back when Integrate delivers a lead. By default, all response codes result in the lead continuing to stay in an accepted state within Integrate unless you have selected Create Only as the action (read the following section for information on actions). Updating a response code to Reject will result in the lead updating to a rejected status upon posting out, removing it from the total accepted lead count. In either case the disposition is reflected within the lead files visible to both you and the demand partner.
- Click the dropdown in the Status column next to the response you would like to update and select the new status.
- Click the dropdown in the Disposition column next to the response you would like to update and select the new disposition.
- In Settings tab - you can name your Integration, and specify the Schema for field names in Salesforce you wish defined.
- Integration Name – Enter a name for your Salesforce integration.
- URL - For an endpoint, use the instance URL to your Salesforce Application: https://<INSTANCE-NAME>.salesforce.com
- Schema – add your Salesforce field names. Include all the fields you will typically use so you can easily add them within your Campaigns and Sources.
- Note: Linked is a SFDC Article for identifying the API field names you wish to use
- Select the blue Authenticate button to save your settings.