On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Snap type: | Read | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | This Snap provides the functionality to poll the status of the batch job submitted to Salesforce by the preceding Salesforce Snaps (Create/Delete/Update/Upsert) in Bulk API mode. This Snap uses the Salesforce Bulk API to check the batch job status and retrieve the result for each record. The Snap sends the successful record writes to the output view and the failed record writes to the error view.+ | |||||||||||||
Prerequisites: | None | |||||||||||||
Support and limitations: | Ultra pipelines: Works Works in Ultra Pipelines.Spark mode: Supported in /wiki/spaces/SD/pages/1437917mode. | |||||||||||||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Configuring the Salesforce Account for information on setting up this type of account. | |||||||||||||
Views: |
| |||||||||||||
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 associated with the Salesforce service that you want to connect to."v34.0" for REST API or "34.0" for Bulk API. Example: 34.0 | |||||||||||||
Polling interval | Required. Enables you to define the polling interval in seconds for the Bulk API batch job execution. At each polling interval, the Snap checks the status of the Bulk API batch processing. Example: 5 | |||||||||||||
Polling timeout | Required. Enables you to define the polling timeout in seconds for the Bulk API batch job execution. If the timeout occurs while waiting for the completion of the batch job execution, the Snap throws a SnapExecutionException. Example: 300 | |||||||||||||
Pass through | If the Pass through property is selected, the input data fields are shown as the top level flatmap data merged with the response from SFDC in the output document. If the Pass through in Poller Snap is not selected, the output document will have the response from SFDC only. Default value: Selected | |||||||||||||
|
|
Examples
Pipeline: Salesforce.com Data to a File: This pipeline reads data using a Salesforce read and writes it to a file.
Expand | ||
---|---|---|
| ||
The following pipeline shows how a Salesforce Create Snap creates an object record and the Salesforce Poller Snap is used to poll the status of the object creation action:
In the pipeline execution:
|
Expand | ||
---|---|---|
| ||
Salesforce Poller pipeline with generic error output viewIn this pipeline, the Salesforce Poller Snap polls the status from a delete action. The status of the invalid records are routed to the error view. The Salesforce Delete Snap deletes the record 001i000001g41S9AAI from the object type Account.
The output error view is displayed below: |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|