Call Salesforce Flow from REST API

Call Salesforce Flow from REST API

Salesforce Auto-Launched Flows can be invoked from REST API. Flow API Name should be used in the end point /services/data/vxx.0/actions/custom/flow/Flow_API_Name to call it. 

Check the following example:

Sample Flow:

Flow Input Variable:

Flow Output Variable:

Fetch Records:

Workbench:
Endpoint:

/services/data/vxx.0/actions/custom/flow/Flow_API_Name

Request Body:

{
  "inputs": [
    {
      "InputVariableAPIName": "InputValue"
    }
  ]
}

https://help.salesforce.com/s/articleView?id=platform.flow_distribute_system_rest.htm&type=5

Leave a Reply