Versions Compared

Key

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

On this page

Table of Contents
maxLevel2
absoluteUrltrue

Overview

Use You can use this account type to access the following Snaps in the Salesforce Snap Pack:

...

Troubleshooting

None.

Account Settings

Parameter
Field Name
Data
Field TypeDescription
Default ValueExample User-provided label
Label*String
Required. 

Specify the name for the account instance.

N/A

Default Value: None]
Example: Salesforce Dynamic Account

Access token*String
Required. Access

Specify the access token for Salesforce.com.

Default Value: N/A
Example: FMJ9810LK21

Instance URL*String
Required. Instance

Specify the instance URL to be used to access Salesforce.com.

Default Value: N/A
Examplehttps://login.salesforce.com

Using a Dynamic Token in a Dynamic Account

...

Note

Salesforce Pipeline

For this pipeline, define two Pipeline parameters:

...

The necessary Salesforce Dynamic Account will be created later, so bypass that for now.

Triggered Task

Create a triggered task for the Salesforce Pipeline. Supply the instance_url and access_token values received from the grant_type POST to the Pipeline parameters.

REST Get Pipeline

Create a REST Get pipeline that calls the Salesforce triggered task with the query parameters such as:

Salesforce Dynamic Account

Back in the Salesforce pipelinePipeline, create a Salesforce Dynamic Account within the Salesforce Snap used.

...

The Snap reads records from the Account object, and retrieves values for the 10 output fields (Output field limit) starting from the 3rd field (Outputfield offset). Additionally, we are passing the values dynamically with the expressions enabled. The pipeline parameters to be passed dynamically are set for the Access token and the Instance URL fields. 

  1. The Salesforce Read pipelinePipeline.


  2. The Key and Value parameters are assigned using the Edit Pipeline property on the designer. 
    For this pipeline, define the two pipeline parameters:

    • accessToken
    • instance



  3. The Salesforce Read Snap reads the records from the object, Account, to the extent of 10 records starting from the 3rd record (by defining the properties- Output field limit and Output field offset with the values 10 and 3 respectively).


  4. Create a dynamic account and toggle (enable) the expressions for Access Token and Instance URL properties in order to pass the values dynamically. 
    Set Access token to _accessToken and Instance URL to _instance_url. Note that the values are to be passed manually and are not suggestible. 


  5. Successful execution of the pipeline Pipeline displays the below output view: