The APPROVAL_APPROVE action approves a Salesforce record that is currently awaiting approval in a Salesforce approval process.
Use this action when a process needs to programmatically approve a record that has already been submitted to a Salesforce approval workflow. The action sends an approval request to Salesforce for a record that is currently in an active approval process. Salesforce evaluates the request and, if valid, records the approval decision and advances the approval workflow. After approval, Salesforce advances the record through the configured approval process and executes any approval-related actions defined in Salesforce.
Before using this action, verify that:
- The record has already been submitted for approval.
- An active Salesforce approval process exists.
- The approval request is still pending.
- The configured Salesforce user has permission to approve the request.
If the approval request is already completed, cancelled, or rejected, Salesforce may reject the approval operation.
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 request is processed. |
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the approval was successful. |