Fields

Fields
ParameterDescription
workflowId
String
requiredId 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.
documents requiredThe 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.
fields optionalName 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.
recordId
String
optionalId 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
)