Salesforce

Supports:

  • ✅ Models
  • ✅ Model sync destination
  • ✅ Bulk sync source
  • ✅ Connection Proxy

Connection

Configuration

NameTypeDescriptionRequired
connect_modestringAuthentication method

Accepted values: browser, clientcredentials , code, api
true
domainstringDomain

The Salesforce instance’s login domain, e.g. acmecorp.my.salesforce.com
true
oauth_refresh_tokenstringfalse

connect_mode

When connect_mode is clientcredentials
NameTypeDescriptionRequired
client_idstringClient IDtrue
client_secretstringClient secrettrue

oauth_token_expiry

When oauth_token_expiry has a value
NameTypeDescriptionRequired
enable_multicurrency_lookupbooleanEnable multicurrency source field support

If incremental mode for bulk-syncing from Salesforce formula fields is enabled, setting this to true extends support to accurate currency conversions.
false
enable_toolingbooleanEnable support for Tooling API

If true, expose objects from the Salesforce Tooling API in the Polytomic bulk sync source object list.
false
enforce_api_limitsbooleanEnforce API limits

If true, Polytomic will restrict itself to a fixed daily cap of Salesforce API calls enforced by the number in daily_api_calls.
false

enforce_api_limits

When enforce_api_limits is true
NameTypeDescriptionRequired
daily_api_callsintegerDaily call limit

The daily Salesforce API call cap that Polytomic should adhere to.
true

Example

{
"name": "Salesforce connection",
"type": "salesforce",
"configuration": {
"connect_mode": "",
"domain": "acmecorp.my.salesforce.com",
"oauth_refresh_token": "dasfdasz62px8lqeoakuea2ccl4rxm13i6tbyorxhu1i20kc8ruvksmzxq"
}
}

Read-only properties

NameTypeDescriptionRequired
instance_url_overridestringInstance URL override

This URL will be used for API requests instead of the one provided by Salesforce during OAuth.
false
usernamestringSalesforce userfalse

Model Sync

Source

Configuration

NameTypeDescriptionRequired
include_deletedbooleanInclude deleted recordsfalse
querystringfalse
tablestringObjectfalse

Example

{
...
"configuration": {
"include_deleted": false,
"query": "select Id from Contact",
"table": "Contact"
}
}

Target

Salesforce connections may be used as the destination in a model sync. Some destinations support additional configuration.

Lead or Contact

Applies to:

  • multi:leadOrContact
Configuration
NameTypeDescriptionRequired
bulk_batch_sizeintegerBulk batch sizefalse
concurrency_modestringConcurrency mode

Accepted values: Parallel, Serial
false
create_records_asstringCreate new records as

Accepted values: Contact, Lead, ContactIfAccountId
true
ingestion_apistringIngestion API

Accepted values: automatic, bulk, rest
true
rest_batch_sizeintegerREST batch sizefalse
Example
{
...
"target": {
"configuration": {
"bulk_batch_size": 100,
"concurrency_mode": "Parallel",
"create_records_as": "",
"ingestion_api": "bulk",
"rest_batch_size": 200
}
}
}

Leads

Applies to:

  • Lead
Configuration
NameTypeDescriptionRequired
bulk_batch_sizeintegerBulk batch sizefalse
concurrency_modestringConcurrency mode

Accepted values: Parallel, Serial
false
ingestion_apistringIngestion API

Accepted values: automatic, bulk, rest
true
insert_null_valuesbooleanCopy null valuesfalse
invalid_relationshipsstringRecords with invalid relationship IDs

Accepted values: error, omit_values, omit_records
true
only_sync_differentbooleanOnly update if different from Salesforcefalse
rest_batch_sizeintegerREST batch sizefalse
skip_convertedbooleanIgnore converted and duplicate leadsfalse
Example
{
...
"target": {
"configuration": {
"bulk_batch_size": 100,
"concurrency_mode": "Parallel",
"ingestion_api": "bulk",
"insert_null_values": false,
"invalid_relationships": "",
"only_sync_different": false,
"rest_batch_size": 200,
"skip_converted": false
}
}
}

Other targets

Configuration
NameTypeDescriptionRequired
bulk_batch_sizeintegerBulk batch sizefalse
concurrency_modestringConcurrency mode

Accepted values: Parallel, Serial
false
ingestion_apistringIngestion API

Accepted values: automatic, bulk, rest
true
insert_null_valuesbooleanCopy null valuesfalse
invalid_relationshipsstringRecords with invalid relationship IDs

Accepted values: error, omit_values, omit_records
true
only_sync_differentbooleanOnly update if different from Salesforcefalse
rest_batch_sizeintegerREST batch sizefalse
sort_batches_bystringSort batches bytrue
Example
{
...
"target": {
"configuration": {
"bulk_batch_size": 100,
"concurrency_mode": "Parallel",
"ingestion_api": "bulk",
"insert_null_values": false,
"invalid_relationships": "",
"only_sync_different": false,
"rest_batch_size": 200,
"sort_batches_by": "AccountId"
}
}
}

Bulk Sync

Source

Salesforce connections may be used as a bulk sync source. No additional configuration options are required.