The APPROVAL_SUBMIT action submits a Salesforce record to a Salesforce approval process.
Use this action when a process needs to initiate an approval workflow for a Salesforce object. The action sends a request to Salesforce containing information about the record that should enter an approval process. Salesforce evaluates the request and starts the appropriate approval workflow if the record satisfies the configured approval criteria. The response returned by Salesforce can then be mapped to process variables and used by subsequent process steps.
Before using this action, verify that:
- An approval process exists in Salesforce.
- The record meets the approval process entry criteria.
- The configured Salesforce user has permission to submit records for approval.
- The record has not already been submitted to an active approval process.
If the record does not satisfy the Salesforce approval criteria, the approval request may be rejected by Salesforce.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| salesforcePayload | JSON | Required |
A JSON object containing the field names and values for the Salesforce record being created. The structure of the payload depends on the selected Salesforce object and its available fields. See the Salesforce API documentation on Working with Records and REST API Reference for details of the fields contained in the JSON structure. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| salesforceResult | String | Optional | The response returned by Salesforce after the approval submission request is processed. |
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the approval submission was successful. |