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 and processes, see Build a Flow.

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 includes Flow__InterviewStatus and any output variables defined in the flow.

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

Process Builder processes created with the Invocable process type can be invoked by REST API using the endpoint /services/data/vXX.X/actions/custom/flow. 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.