דלגו לתוכן

Salesforce connector

תוכן זה אינו זמין עדיין בשפה שלך.

A Salesforce connector reads or writes a record of a Salesforce object through one of the project’s Salesforce connections. This page describes the settings of the connector. For how a template works with Salesforce end to end, with an example, what Cellosign writes back and how errors are retried, see Connect a template to Salesforce. To set up the connection, see Salesforce.

Stage Operation What the connector does
PRESET Lookup Finds a record when the transaction is created, and fills form fields with its values. In a template with several recipients, only when the first recipient’s form is created (see PRESET connectors and several recipients).
LIVE Lookup Finds a record while the recipient fills in the form, and fills form fields with its values.
SUBMIT Create Creates a record from the submitted form.
SUBMIT Update Changes the mapped fields of one record: the record that the query conditions find, or the first or last one when several are found.
SUBMIT Delete Deletes one record, found in the same way.
SUBMIT Upload files Uploads the form’s PDF document and files to one record, found in the same way.

A template can have several Salesforce connectors, with different connections and objects. The query conditions of an active PRESET connector also decide which values a Salesforce flow sends when it starts the template. See Start processes from Salesforce.

  1. On the Integrations tab, click Connectors, and then click Add Preset Connector, Add Live Connector or Add Submit Connector.
  2. In Source, select Salesforce. In Reference, select the Salesforce connection. The list shows the connections whose setup wizard is finished.
  3. In a SUBMIT connector, select the Operation.
  4. Under Salesforce Object, select the object, for example Account. The list shows the objects that the Salesforce user of the connection can access. The other sections appear after you select it.
  5. Except for Create, set the Query Conditions and What happens on query result. See Query Conditions.
  6. For a LIVE connector, select the trigger. See Triggers.
  7. Except for Delete, set the Field Mapping. See Field Mapping.
  8. Click Save, and then save the template.

A PRESET Salesforce connector: the Contact object, a query condition on Email, the result options and two field mappings

The query conditions find the record to read, update, delete or upload files to.

  1. Click Configure. The Formula Builder opens.
  2. Click Add Rule for each condition, and Add Group to combine conditions. A condition compares a field of the object with a form field, a label or a fixed value.
  3. To sort the records that are found, set Order By.
  4. Click Save.

The conditions are shown as a readable query next to Configure. “No conditions defined” means that there are no conditions yet. At least one condition is required.

Then, under What happens on query result, select what happens when no record, one record or more than one record is found. See What happens on query result.

  • In PRESET and LIVE, Select multiple records is also offered, to fill the rows of a Table field from all the records found.
  • In SUBMIT, the connector works on one record. For Case more than one record, select Select first record or Select last record (sorted by Order By), Skip or Stop execution, add log error.
  • When no record is found and the case is Skip, nothing is written, and the connector counts as successful.

Click Add Mapping for each row. The columns of the mapping depend on the stage and the operation.

Map the values of the record to form fields:

Setting What to select
Field The form field to fill, shown with its type. Each field can be used in one row only.
Source DB Column to copy a field of the object, or Formula to calculate the value.
Column For DB Column, the field of the object. For Formula, click the function button to build the formula in the Formula Builder. “No formula set” means that the formula is still empty.

When you map a Table field, a row appears for each column of the table. Select the Source and the Column or formula for each table column. Map at least one table column.

How Salesforce values are converted for the form, for example dates, numbers and picklists, is described in Data mapping and conversions.

Set the values to write to the record:

Setting What to select
Column The field of the object to write.
Value Type Form field, Label or Fixed value.
Value For Form field, the form field. For Label, the name of a label sent when the transaction is created, for example in the labels of an API v3 request. For Fixed value, the value.

For Create, map every field that the object requires.

Select the files to upload:

Value Type What is uploaded
PDF result The signed PDF document of the submitted form.
Meta data A metadata.json file with the form’s data.
Image The images of an Image Upload field. Select the field in Value.
File The files of a File Upload field. Select the field in Value.

A Delete connector has no field mapping.

Message What to fix
Please select a Salesforce object Select the object under Salesforce Object.
Add at least one lookup condition Click Configure and add a condition.
Choose a policy for every result case Select an option for each case under What happens on query result.
Add at least one field mapping Click Add Mapping.
Every mapping row needs a source Complete each mapping row.
Complete every formula before saving Finish each Formula, or select DB Column instead.
Choose a trigger field Select the Trigger Field.