Salesforce Dynamic Account
Overview

Account settings
| Field/Field set | Description |
|---|---|
Label*
String |
Unique name for the account. Default value: N/A |
Access token*
String/Expression |
Specify the access token for Salesforce.com.
Default value: N/A Example: FMJ9810LK21 |
Instance URL*
String/Expression |
Specify the instance URL to be used to access Salesforce.com.
Default value: N/A Example: https://login.salesforce.com |
Using a Dynamic Token in a Dynamic Account
To use a Dynamic Token from Salesforce with a dynamic account, you will need to create:
- A Pipeline to perform the desired Salesforce actions.
- A triggered task to call that pipeline.
- A REST Get Pipeline to query for the token information.
- A Salesforce Dynamic Account with values supplied by Pipeline parameters. You must use Pipeline parameters since accounts get initialized before Snaps.
Salesforce Pipeline
Create a Salesforce Pipeline (with any Salesforce Snaps) using the following Pipeline parameters:
- accessToken
- instanceURL
You will supply values for them in the triggered task. 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
In the Salesforce Pipeline, create a Salesforce Dynamic Account within the Salesforce Snap used.
Set the expression toggle on for both Access token and Instance URL.
Set Access token to _accessToken and Instance URL to _instanceURL.
Examples
Salesforce Snap Reading the Bulk Records with the Dynamic Account Enabled: Read bulk records with a dynamic token and URL.