Model sync (Reverse ETL) from MongoDB to Salesforce
Model sync (Reverse ETL) from MongoDB to Salesforce
Model sync (Reverse ETL) from MongoDB to Salesforce
Before getting started make sure to set your Polytomic API key as an environment variable:
This example tutorial will cover four steps:
The following request will create a MongoDB connection. The configuration for each type of connection can be found at the connection configuration page.
The following request will create a Salesforce connection. The configuration for each type of connection can be found at the connection configuration page.
Since Salesforce connections uses OAuth to authenticate, we’ll need to follow the link returned in the auth_url parameter in the response.
By default, the API expects the auth_url to be opened in a new browser window. If you’d like to modify the redirect behavior, there is an optional redirect_url parameter that can be added to the request body.
For information about how to enumerate sources see the Quickstart Create a model section.
This sync maps the email field in the data model to the email field of Salesforce Contacts. It additionally maps the FirstName and LastName fields. The field mappings can be extended to syncs additional fields.
For information about how to enumerate targets, see our Create a sync section.