Salesforce
Supported pipeline types:
|
When you configure the Salesforce destination, you define connection information, including the API type and version that the destination uses to connect to Salesforce. You specify the Salesforce object to write to by entering the object name or by defining an expression that evaluates to the object name.
You can write Salesforce platform events as you write to any Salesforce object by using the platform event API name, for example, Notification__e, rather than a Salesforce object type API name such as Account or Widget__c.
The Salesforce destination can use CRUD operations defined in the sdc.operation.type record header attribute to write data. You can define a default operation for records without the header attribute or value. You can also configure whether to use multi-row operations for inserts and deletes, and how to handle records with unsupported operations.For information about Data Collector change data processing and a list of CDC-enabled origins, see Processing Changed Data.
You also map incoming fields in the record to existing fields in the Salesforce object. Map the fields as required by the CRUD operation that the destination uses.
You can optionally use an HTTP proxy to connect to Salesforce. When enabled in Salesforce, you can configure the destination to use mutual authentication to connect to Salesforce.
Changing the API Version
Data Collector ships with version 43.0 of the Salesforce Web Services Connector libraries. You can use a different Salesforce API version if you need to access functionality not present in version 43.0.
Define the CRUD Operation
When using the SOAP API, the Salesforce destination can insert, update, upsert, delete, or undelete data. When using the Bulk API, the destination can insert, update, upsert, or delete data.
- CRUD record header attribute
- You can define the CRUD operation in a CRUD operation record header attribute. The destination looks for the CRUD operation to use in the sdc.operation.type record header attribute.
- Operation stage properties
- You define a default operation in the destination properties. The destination uses the default operation when the sdc.operation.type record header attribute is not set.
Field Mappings
When you configure the Salesforce destination, you map fields in the record to existing fields in the Salesforce object.
- SDC Field - Name of the field in the record that contains the data to be written.
- Salesforce Field - API name of the existing field in the Salesforce object that receives the data. Enter a field name or enter an expression that defines the field.
- Delete or undelete
- To delete or undelete data, map only the Salesforce record Id to delete or
undelete. Create a single field mapping that maps the field in the record
that contains the value of the Salesforce record Id to the Salesforce field
named “Id”. Note: Undelete is not supported by the Salesforce Bulk API.
- Insert, update, or upsert
- To insert, update, or upsert data, you can create multiple field
mappings. When you define the Salesforce fields, use the field name syntax
required by the configured API type:
- Bulk API - Use a colon (:) or period (.) as a field separator. For example, Parent__r:External_Id__c or Parent__r.External_Id__c are both valid Salesforce fields.
- SOAP API - Use a period (.) as a field separator. For example, Parent__r.External_Id__c is a valid Salesforce field.