Newer Version Available

This content describes an older version of this product. View Latest

Flow Actions

Invoke an active autolaunched flow that exists in the current org.

For more information about creating flows, see Build a Flow in Salesforce Help.

This object is available for autolaunched flows in API version 32.0 and later.

Supported REST HTTP Methods

URI
Get a list of available flow actions:
/services/data/vXX.X/actions/custom/flow
Invokes the LargeOrder flow:
/services/data/vXX.X/actions/custom/flow/LargeOrder
Formats
JSON, XML
HTTP Methods
GET, HEAD, POST
Authentication
Authorization: Bearer token

Inputs

Input values vary according to the input variables specified for each flow. For autolaunched flows, the input values vary according to the input variables in that flow.

Outputs

The Response to an invocation will include Flow__InterviewStatus and any output variables defined in the flow. For more information, see Flow Resource: Variable in Salesforce Help.

Output Details
Flow__InterviewStatus
Type
picklist
Description
The status of the flow interview. Valid values are:
  • Created
  • Started
  • Finished
  • Error
  • Waiting

Legacy Support for Process Builder

Processes created with type ‘Invocable’ in Process Builder can also be invoked via REST, using the endpoint listed above. See Create a Process in Salesforce Help. This object is available for invocable processes in API version 38.0 and later.

Invocable processes always require one of these input parameters:

  • sObject: The sObject itself that you want the process to execute on. The sObject must be of the same object type as the one on which the process is defined.
  • sObjectId: The Id of the sObject record that you want the process to execute on. The record must be of the same object type as the one on which the process is defined.

Invocable processes don’t have outputs.