On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Overview
The Salesforce Subscriber Snap is a Read-type Snap that provides the functionality to subscribe to Salesforce Platform and CDC events for a given standard and custom Salesforce object.
Note |
---|
Refer the Salesforce Platform Event Allocations and Subscribe to change events documents before configuring this Snap. |
Supported Salesforce Events
- Platform events: User-defined read/write events. These events end with "_e".
- CDC events: Read-only events created when the Salesforce objects (standard or custom) change. These events end with "ChangeEvent" or "_ChangeEvent".
Input and Output
Expected input: A stream of documents that contain data to be published on a Salesforce object
Expected output: A stream of documents with Map data that contain the individual records published on the given Salesforce object and/or original
fields.
Expected upstream Snaps: Any Snap with a document output view. For example, JSON Parser, Mapper.
Expected downstream Snaps: Any Snap with a document input view. For example, JSON Formatter, Mapper.
Prerequisites
- Ensure that Change Data Capture is enabled for the target entities. To do so login to your Salesforce instance and go to Setup → Build → Develop → Change Data Capture.
- Ensure that Field Tracking is enabled for the selected entities.
- Account must have valid access permissions.
Configuring Accounts
This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Salesforce Account for information on setting up this type of account.
Configuring Views
Input | This Snap has at most one input view. |
---|---|
Output | This Snap has at most one output view. |
Error | This Snap has at most one error view and produces documents in the view. Each document in the error view contains key/value pairs from the input view and an error message from Salesforce.com. The error message is in the value of the error key. |
Troubleshooting
NoneLimitation and Known Issue
- For a Salesforce (Platform Events) Subscriber Snap, retry attempts are not logged, and currently retries are attempted only for authentication errors.
- Salesforce imposes a limit on the number of subscriptions. See Change Data Capture Allocations for details.
- Supports only Platform and CDC events.
Modes
Works in Ultra
Pipelines: Works in UltraSnap Settings
Label | Required.The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Service version | Required.The version number of the Salesforce service that you want to connect to.
Example: 44.0 Default value: 44.0 | ||||||||||||
Events | Required. The Salesforce Platform Event or CDC Event. This is a suggestible field that lists the Platform Events and CDC events available to you. Example:
Default value:None | ||||||||||||
Replay ID | Required. The position of an event in the event stream. The Snap supports the following IDs:
Default value: -2 | ||||||||||||
Message count | Required. The number of messages required to read and complete the Pipeline execution.
Example: 2 Default value: -1 | ||||||||||||
Pass through | If selected, the input document is passed through to the output view under the key Default value: Selected | ||||||||||||
Advanced properties | Configuration for Http Long Polling. For example, maxNetworkDelay, maxBufferSize. Click + to add Properties and Values under Advanced Properties. By default, the Snap does not require any advanced properties. | ||||||||||||
|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example
This example Pipeline demonstrates how the Salesforce Subscriber Snap processes platform events.
Download this Pipeline.
The following Salesforce Subscriber Snap shows how the Snap is configured and how the Salesforce object's records are read.
You can see that the Replay ID is -2. So the Snaps reads messages from the beginning. And the Snap reads only 3 messages as the Message count is set to 3.The Snap processes the events and the output preview is as follows:
Download this Pipeline.
Downloads
Attachments | ||
---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|