On In this pagearticle
Table of Contents | ||||
---|---|---|---|---|
|
Overview
You can use this Snap to delete objects in Salesforce.to delete records using Salesforce Bulk API 2.0. The Snap submits the delete requests in batches.
Note | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Prerequisites
None.
Support for Ultra Pipelines
Works in Ultra Pipelines.
Note |
---|
In Ultra Pipelines, set the Batch Size as 1 for the Snap to process one document/record at a time. |
Limitations
Multiexcerpt include macro | ||||
---|---|---|---|---|
|
Snap Input and Output
...
- This Snap performs batch processing; a batch of input documents is processed for each HTTP request sent to Salesforce. Values of all the expression-enabled fields must remain constant during the Snap execution or validation. Hence, all expression fields can support Pipeline parameters only when they are expression-enabled. The input data parameters are not supported for expression fields; for example, $serviceVersion.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
| Mapper |
Each document contains one Salesforce record. | |||
Output | Document |
| JSON Formatter and File Writer |
This Snap has at most one output view and produces documents in the view.
Produces documents in the view. | ||||||
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines.
|
Snap Settings
Field Name | Field Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Label*
| String | Specify the name for the Snap. Update the Snap name if there are two or more Snaps of the same type are in your Pipeline.Default Value: Salesforce Bulk Delete | ||||||
Service Version* Integer | String/Expression/Suggestion |
| ||||||
Object Type*
| String | Specify the name of the Salesforce object or select one from the suggested list.
| ||||||
Polling Interval*
| Polling Interval* | 5 | Integer | Define polling interval in seconds. | ||||
Default Polling Timeout*
| Polling Timeout* | Integer | Define the maximum time in seconds to wait for the query to complete. | |||||
Default Maximum Retry Attempts
| Maximum Retry Attempts | Integer | Define the maximum number of retries to attempt in case of connection failure. | |||||
Default Retry Interval (seconds)
| Retry Interval (seconds) | 3 | Integer | Define the interval between retries in seconds. | ||||
Snap Execution Default Validate and Execute | String | Select one of the three modes in which the Snap executes. Available options are:
|
Example
...
Example
...
Delete Records In Bulk
...
from Salesforce
This example demonstrates how you can to delete bulk records from a Salesforce object.
Note |
---|
Delete The delete function needs data, ; therefore, this pipeline Pipeline uses Salesforce Bulk Create and Bulk Delete Snaps to perform both create and delete data. But the The example description includes majorly only the delete action. For details Learn more about creating data, see Salesforce Bulk Create. |
To delete a record, you need to You must pass a valid object record ID from Salesforce to delete a record.
In this example, the Salesforce Bulk Create Snap creates the IDs, and the Mapper2 Snap passes these IDs to the Salesforce Bulk Delete Snap.
The following images display the Mapper2 Snap configuration and output:
The Salesforce Bulk Delete Snap deletes the specified records. The following images display the Snap configuration and output:
Downloads
Multiexcerpt include macro | ||||
---|---|---|---|---|
|
Attachments | ||
---|---|---|
|
...