Skip to main content

What this is

The Salesforce CRM source brings data into Zeotap CDP from your Salesforce account: you pick a Salesforce object and the fields you want from it, and Zeotap fetches those records on the sync frequency you choose. Data travels the other way — out of Zeotap CDP and into Salesforce — through the Salesforce CRM destinations. Use Salesforce CRM (Sales and Service Cloud) to send audience data to standard objects, or Salesforce CRM Real Time Integration to send records from a journey in real time. For an overview of the source and a worked use case, see Salesforce CRM.

Supported objects and fields

Zeotap automatically fetches all the standard and custom Salesforce objects created in your Salesforce account, and lists the fields available on the object you select. Some standard objects — Account, Contact, Lead, Case and Opportunity — contain columns that correspond to first-party user IDs, which can facilitate user matching. Make sure you ingest a user ID in those cases. For more on this and on country values, see Best Practices for Salesforce CRM Source. You select one Standard object per source. Alongside the object and its fields, you choose:
  • Record Type – whether to ingest active records, deleted records, or all records.
  • Custom Fields – whether to also query relationship fields on that object.
  • Fetch Mode – whether every sync carries the full dataset, or only incremental updates after the first fetch.

Prerequisites

Before you create the source, make sure you have the following:
  • A Salesforce account. Create an account in Salesforce, or use your existing paid account. If you do not have a paid account, go to the Salesforce Developer Edition and create a new developer account. Do not create a free trial account, as sometimes you cannot enable the API for your Salesforce account using a free trial account.
  • A connected app in your Salesforce org. See Set up a connected app in Salesforce.
  • Consumer Key and Consumer Secret from that connected app. See Set the OAuth policies and read the consumer key and secret.
  • Refresh Token. See Obtain the refresh token.
  • Domain – the part of the URL you log in to Salesforce with that comes before .my.salesforce.com/. For example, if you log in at https://zeotap--devops.my.salesforce.com/, your domain is zeotap--devops.
  • Callback URL – https://login.salesforce.com/. You set this on the connected app.
Note:The first sync runs as soon as you create the source, and it retrieves the complete dataset for the object you selected. Subsequent syncs follow the sync frequency and the fetch mode you configured. Plan for that first load when the object holds a large history.

Set up a connected app in Salesforce

Zeotap reads your Salesforce data through a connected app that you create and own in your own Salesforce org. Create the app, set its OAuth policies, then use it to obtain an authorisation code and a refresh token.

Create the connected app

1
Log in to Salesforce as an Administrator.
2
From the account drop-down list appearing in the top-right corner, click Setup.
3
In the left-hand pane, go to Apps > App Manager.
4
Click New Connected App in the top-right corner.
5
On the New Connected App page, enter the following required fields under Basic Information:a. Connected App Nameb. API Namec. Contact Email
6
Go to API (Enable OAuth Settings) and select Enable OAuth Settings.a. In the Callback URL field, enter https://login.salesforce.com/.b. Under Selected OAuth Scopes, select the following options:i. Access and manage your data (api)ii. Perform requests on your behalf at any time (refresh_token, offline_access)iii. Provide access to your data via the Web (web)c. Click Add.
7
Click Save to save the changes for the new connected app.
The API (Enable OAuth Settings) section of a Salesforce connected app, with Enable OAuth Settings ticked, the Callback URL filled in, and three scopes moved into the Selected OAuth Scopes list.

Set the OAuth policies and read the consumer key and secret

In the Connected Apps list (Apps > App Manager), perform the following steps:
1
Find the app that you just created and then click Manage.
2
On the page that opens, click Edit.
3
Under OAuth Policies, make the following selections:a. In the Permitted Users drop-down list, select All users may self-authorize.b. For Refresh Token Policy, select Refresh token is valid until revoked.
4
Save the changes.
The OAuth Policies section of a connected app, showing Permitted Users set to All users may self-authorize and the Refresh Token Policy set to Refresh token is valid until revoked.
5
Go back to the Connected Apps list (Apps > App Manager).
6
Click the app that you just created and then click View.
7
Go to the API (Enable OAuth Settings) section and note down the Consumer Key and Consumer Secret. These two details are required while creating the Salesforce CRM source in the Zeotap CDP App.
The API (Enable OAuth Settings) section of a saved connected app, with the Consumer Key row and the Consumer Secret row highlighted; the secret sits behind a Click to reveal link.

Obtain the authorisation code

Perform the following steps to obtain the authorisation code from Salesforce:
1
Log in to Salesforce as an Administrator.
2
Enter the request URL mentioned below in a new tab to get the code.i. Replace <CONSUMER_KEY> with the Consumer Key that you obtained from the above section.ii. Replace <YOUR_DOMAIN> with your domain name.
Code
3
Allow access to alert pop-ups if any. Your browser is redirected to a URL as this -
Code
4
Obtain the authorisation code from the query string -aPrxYXyxzkuBzbDGdwv67qekAQredtrsWqty38LsdhfREyTRbvdjvTqdbvxPVC__4Cb9xGKDGErtOw%3D%3D
A browser address bar after the redirect, with the code query-string parameter of the login.salesforce.com URL selected.

Obtain the refresh token

1
Send the curl request mentioned below to Salesforce’s own OAuth token endpoint to obtain the refresh token. You can use the Postman client to import the curl below and send the request.a. Replace <YOUR_DOMAIN> with your domain.b. Replace <AUTHORISATION_CODE> with the authorisation code that you obtained from the above section.c. Replace <CONSUMER_KEY> and <CONSUMER_SECRET> with the keys that you obtained while creating the connected app.
Code
2
You can obtain the refresh_token from the response mentioned below.
Code

Create the Salesforce CRM source

Once you have the connected app details, perform the following steps to create a Salesforce CRM source in the Zeotap CDP App:
1
Navigate to the Sources application under Integrate, in the Zeotap CDP App.
2
Click CREATE SOURCE.
3
Choose CRM Data as the Category.
Step 1 of the CREATE SOURCE wizard, Data Source, with the CRM Data category selected from the list of source categories.
4
Click Salesforce CRM at the Data Source.
The SELECT DATA SOURCE list showing Salesforce CRM selected, with Microsoft Dynamics CRM listed below it.
5
Enter a short and descriptive name for the source in Source Name.
6
Under Select your Region, choose the region of upload.
7
Choose the desired Sync frequency from the drop-down list. The first sync takes place once you create the source. However, the subsequent syncs take place based on the sync frequency you selected. Currently, we support the following sync frequencies:a. Sync onceb. Every hourc. Every 3 hoursd. Every 6 hourse. Every 12 hoursf. Dailyg. Weeklyh. Monthlyi. Sync time – When you choose Daily, Weekly, or Monthly as the sync frequency, you can specify the exact time for the sync to occur.ii. Sync Period – Indicates whether the selected Sync time is in the AM or PM.iii. Monthly Sync date – If Monthly sync is selected, you can specify the day of the month on which the sync should run.
8
Enter the Client ID. This is the Consumer Key from your connected app — see Set the OAuth policies and read the consumer key and secret.
9
Enter the Client Secret. This is the Consumer Secret from your connected app.
10
Enter the Refresh Token as obtained under Obtain the refresh token.
11
Enter the Domain.
12
Under Data Entity, depending on the type of data you want to ingest, choose either Customer Data or Non Customer Data and proceed with the source creation. To know more about Customer Data and Non Customer Data, refer to Supported Data Entities.
13
Under Fetch Mode, select either Full or Delta based on the requirement.a. Full – Receives all available data during the initial fetch and thereafter consistently fetches data as per the sync frequency configured.b. Delta – Receives all available data during the initial fetch and thereafter exclusively gathers incremental updates (deltas) as per the sync frequency configured.
Step 2 of the wizard, Source Details, showing the Source Name, Select your Region, Sync frequency and Sync time fields.
14
Choose from the drop-down what Record Type you want to ingest:a. Active Records — All non-deleted records.b. Deleted Records — All deleted records.c. All Records — All records.
15
If you want to add custom relationship fields, set the Custom Fields option to true and enter the fields you want to ingest in the Relationship Fields box that appears.
The Record Type drop-down set to All Records, Custom Fields set to true, and a Relationship Fields box containing two relationship field names.
Note:The relationship fields must be related to the object you are ingesting — otherwise the query will not work.The relationship fields must be added in the same format as they are used in a query. For example: Owner.Name, Parent.Name for the Account object.
16
Choose the appropriate Standard object. We automatically fetch all the standard and custom Salesforce objects created in your Salesforce account.
The lower half of the Source Details step, showing the Refresh Token, Domain, Data Entity, Fetch Mode and Standard object fields.
The Standard object drop-down open, listing Salesforce objects in alphabetical order.
17
Click Next to proceed to fields selection.
18
In the Filter step that appears, a list of fields is displayed, based on the object selected in the previous step. You can select the desired fields using the check boxes. Use Select All to select all the fields available for that object in your Salesforce account, or Clear All to clear the selection. If you know the field names, you can select them after searching in the Search Fields box.
Step 3 of the wizard, Filter, with the FILTER STANDARD OBJECT FIELDS panel, a Search Fields box, Select All and Clear All links, and a checkbox list of object fields. Callouts point at the search box and at the two links.
Note:Ensure that you consider the following points while choosing the fields in the above step:
  • Currently, editing the field selection after source creation is not allowed. If you wish to do so, then you need to create a new source in Zeotap CDP.
  • Zeotap CDP does not support the following compound fields (nested objects) and choosing them during source creation might cause ingestion failure:
    • PersonMailingAddress
    • PersonOtherAddress
    • ShippingAddress
    • BillingAddress
    • Address
    • MailingAddress
    • OtherAddress
    • Subject
    • Description
    • Comments
19
Review the selected fields and click Create Source.

Verify the source

1
The created Salesforce CRM source is listed on the source listing page.
The Sources listing page filtered to the CRM Data category, showing source rows with their ID, name, status, total records, last ingested and created date.
2
Open the source and check the IMPLEMENTATION DETAILS tab. It shows who created the source and when, the region, sync frequency, data entity, fetch mode and standard object, the access details you entered, and the fields selected for the object.
The IMPLEMENTATION DETAILS tab of a created Salesforce CRM source, with the summary row, the Access Details section and the Selected Fields chips. The source is marked INTEGRATED.
3
Once the connection between Zeotap and Salesforce is established, you can view the data flowing into the system under the PREVIEW DATA tab. Once data starts flowing in, the status of the source changes to Integrated. See Components of the Preview Data Tab.
4
Use the SOURCE REPORT tab to check how many records were received, ingested and failed. See Exploring Source Reports.

Troubleshoot the Salesforce CRM source

This error denotes that the REST API is not enabled for this organisation. Perform the following steps in Salesforce to resolve it:
1
Click the gear icon in the top-right corner and then click Setup.
The Salesforce gear menu open in the top-right corner, with Setup at the top of the menu.
2
Under ADMINISTRATION, go to Users and click Profiles.
The Salesforce Setup left-hand pane with the ADMINISTRATION section expanded and Profiles selected under Users.
3
Click Edit for the specific profile that you want to update.
4
Under the Administrative Permissions section, select the API Enabled checkbox.
The Administrative Permissions grid on a Salesforce profile, with the API Enabled checkbox highlighted and ticked.
5
Scroll to the bottom of the page and click Save to save your changes.
Open the source and check the SOURCE REPORT tab: it shows the total records received, in progress, ingested and failed for the source. See Exploring Source Reports.Two common causes are worth ruling out first:
  • Compound fields were selected. Zeotap CDP does not support the compound fields listed above, and selecting them during source creation might cause ingestion failure.
  • Country values are missing or invalid. Records must be tied to a country, with valid values in the country column, and the data must belong to the region you selected. See Best Practices for Salesforce CRM Source.
Editing the field selection after source creation is not allowed. To ingest a different set of fields, create a new source in Zeotap CDP with the selection you want.

Next steps

Last modified on November 17, 2026