Adding users from Snowflake to Salesloft Cadence
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 six steps:
- Create a Snowflake Connection.
- Create a Salesloft Connection.
- Create a Snowflake model over a custom SQL query.
- List the available Salesloft cadences.
- List the target fields on a specific cadence.
- Sync users from Snowflake into a Salesloft cadence.
1. Create a Snowflake connection
The Snowflake instance must be reachable from Polytomic over the network. See the Polytomic IP allowlist for the source addresses to allow.
cURL
Python
Typescript
Go
2. Create a Salesloft connection
The following request creates a Salesloft Connection that authenticates through Polytomic Connect’s embedded OAuth modal. You can also connect with a Salesloft API key or run OAuth yourself and pass the client credentials to Polytomic — see the Salesloft connection configuration for details.
cURL
Python
Typescript
Go
If you authenticate to Salesloft with OAuth instead of an API key, 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.
3. Create a Snowflake model
The following request creates a model over a Snowflake query. Replace the query with your own:
cURL
Python
Typescript
Go
4. List the Salesloft target objects
Polytomic can sync to Salesloft Accounts, People, and Cadences. Every Salesloft cadence appears as a target object alongside Accounts and People:
cURL
Python
Typescript
Go
5. List the target fields on a Salesloft cadence
Call the Get Sync Target Fields endpoint to list the target fields available on the cadence you plan to sync to. The fields you map in Step 6 come from this set:
cURL
Python
Typescript
Go
6. Sync Snowflake users into a Salesloft cadence
This sync matches existing Salesloft Person records on email and also syncs first_name and last_name from Snowflake.
If a Person does not exist in Salesloft, Polytomic creates it before adding it to the cadence. If it does exist, Polytomic updates it with the mapped field values before adding it.
Specify the target cadence with target.object:
