Bulk sync (ELT) from Salesforce to S3
Bulk sync (ELT) from Salesforce to S3
UI demo video
Watch the same steps in the Polytomic admin console in this demo video.
Code
Set your Polytomic API key as an environment variable:
This example covers three steps:
- Create a Salesforce Connection.
- Create an S3 Connection.
- Bulk Sync data from Salesforce into S3.
1. Create a Salesforce connection
The following request creates a Salesforce Connection. See the Salesforce connection configuration for the required fields.
cURL
Python
Typescript
Go
Salesforce Connections authenticate with OAuth. Open the URL returned in the auth_url field of the response to complete the flow.
OAuth redirection
By default, the API expects auth_url to open in a new browser window.
Set the optional redirect_url parameter in the request body to change
the redirect target.
2. Create an S3 connection
The S3 bucket must be reachable from Polytomic over the network. For details, see the S3 connection guide.
cURL
Python
Typescript
Go
3. Create a Bulk Sync
The following request creates a Bulk Sync that replicates the Salesforce Account and Contact objects into S3:
Omit schemas to sync every object on the source.
cURL
Python
Typescript
Go
Bulk Sync schemas
ℹ️ Retry while schemas cache
Polytomic may take a few moments to cache source schemas after a new Connection is created. Until the cache is populated, Bulk Sync creation returns:
This request is safe to retry until it returns a
2xxresponse.
