Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article

...

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.

...

View TypeView FormatNumber of ViewsExamples of Upstream and Downstream SnapsDescription
Input Document
  • Min: 1
  • Max: 1
  • Mapper
This Snap has exactly one input view and receives documents in the view. Each document contains one Salesforce record.
OutputDocument
  • Min: 0
  • Max: 1
  • JSON Formatter and File Writer

This Snap has at most one output view and produces documents in the view.

Error

Document

  • Min: 1

  • Max: 1

N/A

The error view contains error, reason, resolution and stack trace. For more information, see Handling Errors with an Error Pipeline.

Snap Settings

Field NameField TypeDescription
Label*String

Specify the name for the Snap. Update the Snap name if there are two or more Snaps of the same type in your Pipeline.

Default Value: Salesforce Bulk Delete
ExampleSalesforceBulk2Delete

Service Version*

Integer
String/Expression/Suggestion

Multiexcerpt include macro
nameME_Service_Version
pageSalesforce Batch Create

Object Type*String

Specify the object type. This property enables you to define the name of the Salesforce object.

Default ValueAccount
ExampleAccount

Polling Interval*Integer

Define polling interval in seconds.

Default Value: N/A
Example: 5

Polling Timeout*Integer

Define the maximum time in seconds to wait for the query to complete.

Default Value: N/A
Example: 300

Maximum Retry AttemptsInteger

Define the maximum number of retries to attempt in case of connection failure.

Default Value: N/A
Example: 5

Retry Interval (seconds)Integer

Define the interval between retries in seconds.

Default Value: N/A
Example: 3

Snap ExecutionString

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.
  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default ValueExecute only
ExampleValidate and Execute 

Insert excerpt
Salesforce Batch Create
Salesforce Batch Create
nopaneltrue

...

Deleting Records In Bulk From Salesforce

This example demonstrates how you can delete bulk records from a Salesforce object. 

Note

Delete function needs data, therefore, this pipeline uses Salesforce Bulk Create and Bulk Delete Snaps to perform both create and delete data. The example description includes only the delete action.

For details about creating data, see Salesforce Bulk Create.

Image Modified

To delete a record, you need to pass a valid object record ID from Salesforce. 

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: 

Image Modified


The Salesforce Bulk Delete Snap deletes the specified records.
 The following images display the Snap configuration and output: 

Image Modified

Downloads

Attachments
patterns*.slp, *.zip

...