Model sync (Reverse ETL) from MongoDB to Salesforce
Model sync (Reverse ETL) from MongoDB to Salesforce
Model sync (Reverse ETL) from MongoDB to Salesforce
Watch the same steps in the Polytomic admin console in this demo video.
Set your Polytomic API key as an environment variable:
This example covers four steps:
The following request creates a MongoDB Connection. See the MongoDB connection configuration for the required fields.
The following request creates a Salesforce Connection. See the Salesforce connection configuration for the required fields.
Salesforce Connections authenticate with OAuth. Open the URL returned in the auth_url field of the response to complete the flow.
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.
Create a model over a MongoDB collection:
To enumerate the sources available on a Connection, see this example.
The sync maps email, first_name, and last_name from the MongoDB model onto the matching Salesforce Contact fields. Add more entries to the fields array to sync additional columns.
To discover the target objects available on a destination, use the Get Sync Target Objects endpoint.