Skip to main content
Connecting to Salesforce

How to connect Salesforce data into Coho

Updated over a week ago

To connect Salesforce data to Coho, follow the next steps:

  1. Go to Setup:

  2. In the search menu type “App Manager” and select it.

  3. Click on “New Connected App”

  4. Fill the form as detailed below, and save:

  5. Once the connected app is created go to “Manage” and under “Client Credentials Flow” select “Run as” and choose “Integration User”.

    If you don’t have an “Integration User”, follow the steps described here:

  6. Make sure the user has sufficient permissions to read Accounts, Contacts, Leads, and Oppurtunities.

  7. In the search menu type “App Manager” again, find the connected app and select “View”.

  8. Select “Manage Consumer Details”

  9. Copy and save the client id and secret, and send them over to Coho

  10. Send to Coho your Salesforce domain.In Setup go to “My Domain”. The required value to send is under “Current My Domain URL”.

  11. Coho’s Salesforce inbound connector enriches existing users and accounts with Salesforce data. To do so we require a mapping between the field used in your source event to determine the userId/accountId and the corresponding field in your Salesforce contact/account.

    For example:

    If your source events are as so:

    {
    "userId": "123",
    "accountId": "abc"
    }


    And your Salesforce objects are as so:

    Contact:
    {
    "id": "...",
    "your_custom_contact_id__c": "123"
    }

    Account:
    {
    "id": "...",
    "your_custom_account_id__c": "abc"
    }


    Then the mapping you will need to pass is:
    userId --> your_custom_contact_id__c
    accountId --> your_custom_account_id__c

Did this answer your question?