You can connect Salesforce with Treasure Data for greater control over your Salesforce data and better integration with the other business applications in your marketing and sales operations stack.
Integrating Salesforce with Treasure Data makes it easy to:
Add new features to Salesforce. For example, you can prevent churn by tracking web usage and receiving alerts when customers’ product usage declines.
Use Salesforce data to improve other parts of your marketing stack. For example, you can increase your Facebook Ads ROI by automatically removing new customers from your Facebook Custom Audiences.
For sample workflows on importing data from Salesforce, go to Treasure Boxes.
If you don’t have a Treasure Data account yet, contact us so that we can get you set up.
Continue to the following topics:
Bulk API limits. Bulk API offers faster ingestion but also has a limitation of 10,000 batch allocations within a 24-hour period. If your target is large, your entire available batch allocation might be consumed, causing your job to fail eventually. If you try to use the Bulk API, and the result is the ingestion of all records, consider enabling the synchronous transfer only option and using REST API. The use of REST API avoids the batch allocation limitation but might be slower.
SFDC import supports these authentication types:
Credential
OAuth
Using Session ID for authentication is not supported for import.
Session ID is supported for the Salesforce Export Integration only.
Connecting to Salesforce using the TD Console is quick and easy. Alternatively, create Salesforce connection using the command line. The import integration supports credentials; you need a client ID and client secret to authenticate using credentials.
These instructions guide you to locate the client ID and client secret that is necessary to authenticate using credentials.
|
Open TD Console.
Navigate to Integrations Hub > Catalog and search for Salesforce.
![]() |
![]() |
5. Select Continue.
6. Give your connection a descriptive name and select Create Connection.
To validate the user permission, make sure to use Salesforce to validate:
Authority: check the Salesforce import integration connection steps.
Allowed access to Salesforce from Treasure Data: sometimes configuring this requires knowing and configuring your TD static IP address. Please contact support if you require the static IP address information.
Without properly configured authority and access, you might encounter access restriction errors. For example:
Response not 2xx: 400 Bad Request {"error":"invalid_grant","error_description":"authentication failure"} |
After creating the authenticated connection, you are automatically taken to Authentications.
Search for the connection you created.
Select New Source.
Type a name for your Source in the Data Transfer field.
Click Next.
Edit the following parameters:
Parameters | Description |
Source | Name of the object you want to import |
Include deleted records | Enables including deleted records |
Use synchronous transfer only | Enables synchronous transfer using REST API |
Incremental | Imports only new data since the last import |
Select Next. The Data Settings page opens.
You can edit the SOQL query, WHERE conditions and Schema settings here.
Optionally, skip this page of the dialog.