Salesforce
Source and destination
Polytomic connects to Salesforce using OAuth and requires a Salesforce account with read-write permissions. While not required, we recommend you create a user in Salesforce exclusively for Polytomic so that the audit logs in Salesforce distinguish all Polytomic activity.
Salesforce sandbox
Connecting Polytomic to a Salesforce sandbox is no different than connecting to a production instance; the same instructions apply. Indeed, if you have a Salesforce sandbox available we recommend you create two Salesforce connections in Polytomic: one to your sandbox for testing and one to your production instance.
Creating a connection
-
In Polytomic, go to Connections → Add Connection → Salesforce.
-
Pick your connection name and enter your unique Salesforce domain or ID. The domain is often a string in the format
foocorp.my.salesforce.com
. You can also enter your unique ID instead,foocorp
in this case.
- Click Connect to Salesforce and go through OAuth authentication using a Salesforce account. Successful authentication will result in the connecting username being shown:
- Click Save.
Connection maintenance
- Polytomic automatically enforces a conservative daily Salesforce API-call limit on itself derived from your Salesforce instance. You can override Polytomic's automatic behavior with a specific daily API-call limit of your choice by ticking the Enforce API limits box.
- If you need to change the authorized user, you can click the Force reconnect button and re-authenticate the connection with the new user.
Syncing from Salesforce
Formula fields
When syncing from Salesforce to your other systems (data warehouses included), Polytomic materialises formula fields in the destination system as standard fields/columns with the formula value. Polytomic will manifest them just like any other field.
This applies to all types of formula fields, whether numeric, currency, date, text, or other. There is no special processing required on your part to digest the formula field values synced by Polytomic: they show up just like any other field.
Tooling API objects
Polytomic supports syncing from the metadata objects behind Salesforce's Tooling API (e.g. Entity Particles and others). To surface those in your Salesforce connection, make sure to tick the Enable support for Tooling API box in your Salesforce connection:
Surfacing these objects will consume a few extra Salesforce API calls.
History cutoff
When syncing objects from a large Salesforce instance, you may want to avoid syncing all history. You can set a history cutoff date in Polytomic which will restrict the sync to only those Salesforce records that were last updated after your chosen cutoff date:
While Polytomic offers a global date cutoff, you can also override this on a per-object basis:
And, of course, if you'd like even finer per-object filters to apply before your Salesforce data starts syncing, you can also use Polytomic's bulk sync table filters.
Syncing to Salesforce
Delete mode
When syncing to Salesforce, one of the sync modes supported by Polytomic is Delete mode:
This deletes designated records in Salesforce. Specifying what should be deleted is like with any other sync: pick your identity mapping from your source and set any filter conditions (other field mappings are unnecessary in this mode):
In the example above, Polytomic will delete all Contacts in Salesforce that meet these two conditions:
- The Salesforce
Email
field value matches that of theEmail
field of the source model. - The source model's
Is deleted
field for the matching record is set totrue
.
Updated 14 days ago