Versions Compared

Key

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

On this page

Table of Contents
maxLevel2
absoluteUrltrue

...

You can use this Snap to update or insert object records in Salesforce.com in Bulk API mode.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines.

Limitations

Multiexcerpt include macro
nameME_Expression_Fields_Limitation
pageSalesforce Bulk Create

...

TypeFormatNumber 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 Map data for an object ID and records of field and value pairs.
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

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

...

Field NameField TypeDescription
Label*String

Specify the name for the account. Preferably update the name if your project has more than one Snap of the same type.

Default ValueSalesforce Bulk Upsert
ExampleSalesforce Bulk Upsert

Service Version*

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

External-ID Field*String

Specify the name for the External ID field. Use this field to define the unique externalized key of the object. The Snap operates exclusively on the external ID field, and not on the Salesforce-generated record ID. The external ID is useful when you want to synchronize an external system to Salesforce.com.

If a record for a given external ID exists, the record is updated with the input record data. If no record exists for a given external ID, create a new record with the input record data. Use the external ID as the unique record identifier from an external system. 

To create an external ID field for an Account object:

  1. Log in to your Salesforce account.
  2. Go to App Setup > Customize > Account > Fields > New.
  3. Follow the instructions and create a new custom field.

Default Value: N/A
Exampleexternal_Id_c__c

Related ObjectString

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.

Default Value: N/A
ExampleAccount

Related External IDString

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.

Default ValueN/A
ExampleAccountNumber__c

Polling Interval*Integer

Define polling interval in seconds.

Default Value: N/A
Example5

Polling Timeout*Integer

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

Default Value: N/A
Example300

Maximum Retry AttemptsInteger

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

Default Value: N/A
Example5

Retry Interval (seconds)Integer

Define the interval between retries in seconds.

Default Value: N/A
Example3

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
ExampleExecute only

Example

Inserting Bulk Records in Salesforce

This example demonstrates how to insert or update a new bulk record in a Salesforce object.

Image Modified

The JSON Generator Snap generates five new JSON documents. The output from the Snap displays the names of the documents and customized serial numbers.

The following images display the Snap configuration and output: 


The Mapper Snap transforms the incoming data using the given mappings and produces new output data. The output from the Snap displays the names and customized serial numbers of the output documents
The following images display the Snap configuration and output: 

Image Modified


The Salesforce Bulk Upsert Snap updates or inserts data in
Salesforce.comThe output from the Snap displays the names, IDs, and customized serial numbers of the updated or inserted documentsThe following images display the Snap configuration and output: 

Downloads

...

Important Steps to Successfully Reuse Pipelines

...

Download and import the Pipeline into SnapLogic.

...

Configure Snap accounts as applicable.

...

Multiexcerpt include macro
namedownload_instructions
pageOpenAPI

Attachments
patterns*.slp, *.zip

...