Note:Refer to Source - Salesforce CRM to know more about this source.
Prerequisites
To proceed with Salesforce CRM creation, ensure that you adhere to the following points:Create an account inSalesforce. If you already have a paid Salesforce account, then you can use your account.
If you do not have a paid account, then 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.
After logging into your account, create a Connected App. Refer to the later sections to know more about how to create a connected app, obtain the authorisation code and refresh token.
Also, ensure that you have the following information available with you:a. Consumer Key and Consumer Secret – Refer to Connected Apps to know more.b. Refresh Token – Refer to Refresh Token to know more.c. Domain – This is the URL using which you log into your Salesforce account. That is -
https://zeotap--devops.my.salesforce.com/. In the URL, the part before .my.salesforce.com/(zeotap--devops), is your Domain.d. Callback URL – The Callback URL is https://login.salesforce.com. Refer to Connected Apps to know more.How to Create a Connected App
Perform the following steps to create a Connected App:On the New Connected App page, enter the following required fields under Basic Information:
a. Connected App Nameb. API Namec. Contact Email
Go to API (Enable OAuth Settings) and select Enable OAuth Settings.a. In the Callback URL field, enter https://login.salesforce.com/.b. In the Selected OAuth Scopes field, select the following options:i. A ccess 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.
How to Manage a Connected App
In the Connected Apps (Apps > App Manager) list, perform the following steps to manage the App: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 Polic y, select the Refresh Token is valid until revoked option.
How to Obtain the Authorisation Code
Perform the following steps to obtain the authorisation code from Salesforce: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
How to Obtain Refresh Token
Perform the following steps to obtain the refresh token:Hit the curl request mentioned below to obtain the refresh token. You can use the Postman client to import the below curl and hit 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
Troubleshooting Errors
While sending a request to the Salesforce API using the above credentials, you may encounter a few errors. This section provides a brief explanation of these errors and a resolution for them.Error
‘REST API is not enabled for this Organization’ Issue
Description
The error denotes that the rest API is not enabled for this organization.Resolution
Perform the following steps to resolve this error:Create a Salesforce CRM Source
Perform the following steps to create a Salesforce CRM Source in the Zeotap CDP App: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 sysc frequency you selected. Currently, we support the following sync frequenciesa. Sync onceb. Every hourc. Every 3 hoursd. Every 6 hourse. Every 12 hours,f. 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.
Enter the Client ID. This is the Consumer Key mentioned under Create a Connected App.
Enter the Client Secret. This is the Consumer Secret mentioned under Create a Connected App.
Enter the Refresh Token as mentioned under Obtain the Refresh Token.
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 here.
Under Fetch Mode, select either Full or Deltabased 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 configures.

Choose the appropriate Salesforce Objec t. We automatically fetch all the standard and custom salesforce objects created in your Salesforce account.



In the window that appears, based on the Object selected in the previous step, a list of fields are displayed. You can select the desired fields using the check boxes. Use Select Allto select all the fields available for that Object in your Salesforce account. If you know the field names, you can select them after searching in the search box.

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:
PersonMailingAddressPersonOtherAddressShippingAddressBillingAddressAddressMailingAddressOtherAddressSubjectDescriptionComments
Review the selected fields and click CREATE SOURCE. The created Salesforce CRM source is listed on the source listing page as shown below.


.png?fit=max&auto=format&n=5K-Zf-MYwWXwJWp5&q=85&s=f8be21a1c0bc2e7e106d8504e08baec4)
.png?fit=max&auto=format&n=5K-Zf-MYwWXwJWp5&q=85&s=bda20d6544ade053745818d215b483a0)
.png?fit=max&auto=format&n=5K-Zf-MYwWXwJWp5&q=85&s=f53e32fb0de2f18563c1733d1ce2cbec)
.png?fit=max&auto=format&n=xGzkHY-dcQy5tLit&q=85&s=df8d8d2fdd407674df5c307cceef3231)
.png?fit=max&auto=format&n=xGzkHY-dcQy5tLit&q=85&s=8c857af23e0c1d09d7b5cfa74264eb02)
.png?fit=max&auto=format&n=xGzkHY-dcQy5tLit&q=85&s=eeae13d3e8dbdf6b6f3a99d850b2748d)
.png?fit=max&auto=format&n=5K-Zf-MYwWXwJWp5&q=85&s=388421943bae89eaef3119eecbb90159)

