Salesforce Bulk Update

Salesforce Bulk Update

In this article

Overview

You can use this Snap to uupdate object records in Salesforce object records using Salesforce using Bulk API 2.0.

  • The ID field is required. This Snap will update records only by record ID and not by its external ID.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines.

In Ultra Pipelines, set the Batch Size as 1 for the Snap to process one document/record at a time.

Limitations

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 1

  • Max: 1

Mapper

Each document contains Map data for an object ID, a record ID and key-value pairs for fields to be updated

Output

Document

  • Min: 0

  • Max: 1

JSON Formatter + File Writer

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:

  • Stop Pipeline Execution: Stops the current Pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Because of the potentially large size of the error messages, the Reason for the Salesforce error message in the error document field may be truncated.

The complete error is available in the field full_error under the original object containing copies of the failed input records or in the logs.

Snap Settings

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

 

Default ValueSalesforce Bulk Update
Example: Salesforce Bulk Update

String

Specify a unique name for the Snap. 

 

Service Version*


Default Value52.0 






Example41.0

String/Expression/Suggestion

Specify the version number associated with the Salesforce service you want to connect to. Alternatively, click the Suggestion 

 icon to fetch the list of versions and select the desired version.








Object Type*


Default Value: Account
Example: Account

String

Specify the name of the Salesforce object or select one from the suggested list

This Snap does not support Net Zero Cloud Salesforce objects.

Related Object


Default Value: N/A
Example: Account

String

Enter or select a related parent object. This property does not affect the Snap operation on records in Salesforce. It is provided for the property suggestion and the input schema suggestion only.

 

Related External ID


Default Value: N/A
Example: AccountNumber__c

String

Enter or select an external ID of the related parent object. This property does not affect the Snap operation on records in Salesforce. It is provided for the property suggestion and the input schema suggestion only. 

 

Display null or empty values as null

 

Default ValueDeselected



Checkbox

This checkbox controls how empty strings or null data coming from Salesforce are displayed in the output preview.

When you select this checkbox, the empty strings or null data from Salesforce is displayed as null in the output preview. Refer to this example.

When you deselect this checkbox, the Snap displays an empty string or null data as blank in the output preview. The null/empty-string values are always displayed as empty ('') string in the output preview.

Default Value: Deselected

 

The output in the Salesforce application remains unaffected. Whether the checkbox is selected or deselected, the Salesforce record and its corresponding output continues to appear empty, as shown below: 

 

Polling Interval*


Default Value: 5
Example: 5

Integer

Define polling interval in seconds.

 

Polling Timeout*


Default Value: 3000
Example: 300

Integer

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

 

Maximum Retry Attempts


Default Value: 5
Example: 5

Integer

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

 

Retry Interval (seconds)


Default Value: 3
Example: 3

Integer

Define the interval between retries in seconds.

 

Snap Execution


Default Value:Execute only
Example: Validate & Execute

String

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, it 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.