Preview Approval Error

Output representation of the error details associated with the Preview Approval API.

JSON Example 

This example shows a sample error scenario.

1{
2  "approvalChainItems": [],
3  "error": {
4    "correlationId": "0Q0DU0000005HZC0A2",
5    "errorCode": "[xmlrpc=-1, statusCode=INVALID_API_INPUT, exceptionCode=null, scope=PublicApi, http=400]",
6    "errorMessage": "Looks like the flow associated with this approval workflow for the current record isn't active. Activate the flow and try again.",
7    "source": "PreviewApprovalDataProcessingException"
8  },
9  "status": "Failure"
10}
Property NameTypeDescriptionFilter Group and VersionAvailable Version
correlationIdStringUnique token to track and associate related events or transactions across different components of the application. If unspecified, a Universally Unique Identifier (UUID) is generated.Small, 65.065.0
errorCodeStringCode for the resultant error.Small, 65.065.0
errorMessageStringError message for the resultant error.Small, 65.065.0
sourceStringDetails about the source of the error.Small, 65.065.0