Adding contacts from Snowflake to Gong Engage
Code
Set your Polytomic API key as an environment variable:
This example covers six steps:
- Create a Snowflake Connection.
- Create a Gong Connection.
- Create a Snowflake model over a custom SQL query.
- List the available Gong Engage flows.
- List the target fields on a specific flow.
- Sync users from Snowflake into a Gong Engage flow.
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 Gong connection
The following request creates a Gong Connection that authenticates through Polytomic Connect’s embedded OAuth modal. You can also run OAuth yourself and pass the client credentials to Polytomic — see the Gong connection configuration for details.
cURL
Python
Typescript
Go
If you authenticate to Gong 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 Gong Engage flows
Polytomic can sync to Gong Accounts, People, and Cadences. Every Gong Engage flow appears as a target object:
cURL
Python
Typescript
Go
5. List the target fields on a Gong Engage flow
Call the Get Sync Target Fields endpoint to list the target fields available on the flow you plan to sync to. The fields you map in Step 6 come from this set:
cURL
Python
Typescript
Go
6. Sync Snowflake contacts into a Gong Engage flow
Adding contacts to a Gong Engage flow requires your CRM’s contact ID — for example, a HubSpot or Salesforce contact ID. You can source that ID from anywhere (including Snowflake, as below), but the ID must also exist in the CRM linked to Gong.
This sync uses the contact_id field from Snowflake to add the matching CRM contacts to a Gong Engage flow. Specify the target flow with target.object:
