Fields
Fields
| Parameter | Description | |
|---|---|---|
workflowIdString |
required | Id of the published workflow to run. This is the Workflow Id set when the workflow was built, such as invoice-review, not a Salesforce record Id. It is the same in every environment, and the latest published version always runs. |
documentsList<DocumentSlotBinding> |
required | The documents to read, each paired with the slot it fills. To send several documents to one slot, add several DocumentSlotBinding entries with the same slot name. |
fieldsList<FieldValue> |
optional | Name and value pairs passed into the run, for anything the workflow needs that the documents do not contain. Each name must match an input the workflow declares. |
recordIdString |
optional | Id of the Salesforce record the run is associated with. The workflow's steps cannot read it, so if the workflow needs the record Id, pass it in fields as well. |
Constructors
global RunWorkflowPayload( String workflowId, List<DocumentSlotBinding> documents, List<FieldValue> fields, String recordId )