Preview Approval (POST)

Preview the approval levels of a record and associated level details, approval chains, approvers, and conditions before you submit the record for an approval.

For example, a sales rep working on a quote can preview the approval levels for a quote before submitting the quote for approval.

Resource 

1/connect/advanced-approvals/approval-submission/preview

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/advanced-approvals/approval-submission/preview

Available Version 

65.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "flowApiName": "QuoteApprovals",
3  "objectApiName": "Quote",
4  "recordId": "0Q0DU0000005HZC0A2",
5  "inputParameters": {
6    "approverComments": "Submitted for approval",
7    "requestType": "Standard"
8  }
9}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
flowApiNameStringAPI name of the auto-launched flow.Required65.0
objectApiNameStringAPI name of the object to preview the approvals for.Required65.0
recordIdStringID of the record to preview the approvals for.Required65.0
inputParametersMap<String, Object>List of input parameters to preview.Optional67.0

Response Body for POST 

Preview Approval