Need some help? Contact us:
...
The Salesforce adapter component is designed to help you connect and interact with the Salesforce API. It includes a simple example of retrieving and updating an account. It is designed in a way for you to easily adapt and build additional functionality quickly.
Expand |
---|
title | Sign up for a Salesforce and create a form to collect data |
---|
|
Refer to Setup a Salesforce Developer Account for the sign up process and gathering the Salesforce authentication details needed for the Salesforce Adapter. |
...
Expand |
---|
title | Configure your domain and authentication details in the Salesforce Adapter Custom Fields |
---|
|
Input your developer account domain Consumer Key as the ClientID Consumer Secret as the ClientSecret
The Key does not need to be entered. SALESFORCEcustom module first queries the Salesforce token endpoint using the OAuth2.0 client credentials workflow to obtain the token and sets it to the encrypted Key custom field. The API version is set to default to v59.0. You can find what version you are using by going to <your domain>/services/data/. |
Expand |
---|
title | Click Edit to Open the Translator and view the how the script works |
---|
|
The Salesforce Library contains lua files for various method calls used to interact with Salesforce objects via the API: SALESFORCEclient - creates the Salesforce adapter framework, adding the various method modules to a metatable and storing the configurations added to the custom fields. SALESFORCEcustom - takes in any API requests and parameters to make the API call and return the response. It also performs the OAuth2.0 authentication workflow to obtain the token to be used in subsequent requests.
The methods are set up so they’re independent of salesforce objects, so they can be used for any custom objects you may have in your Salesforce setup: SALESFORCEquery - By default, retrieves all the fields for a given object, up to 200 fields. Can be customized by using the query parameter. SALESFORCEmodify - creates or updates a Salesforce object by passing the object name, id and a table of fields and values to be created or updated in the object. SALESFORCEmodifyBatch - creates or updates a batch of Salesforce objects by passing a list of operations to be performed on Salesforce objects as table of parameters. SALESFORCEdelete - deletes a Salesforce object by specifying an object name and id. Image RemovedSALESFORCE Library is used to create a Salesforce client and call different methods against the Salesforce API. The example workflow included: Queries Salesforce for an Account Object named “Jiffy Dry Cleaning“ If the call was successful and an Account object that meets the query exists then modify the object by passing the Object name, id, and parameters to update (the industry) Image Added |