Get the related record details submitted for approval before the current approval submission. The details are required for approval steps that use custom logic for auto-approvals.
This Apex action is available in API version 66.0 and later.
Supported REST HTTP Methods
URI: /services/data/v68.0/actions/standard/getPreviousRelaRecDetails
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
Inputs
Input Type Description flowOrchestrationInstanceIdstring Required. The ID of the flow orchestration instance associated with the approval submission. stepApiNamesListstring Required. The comma-delimited list of step API names to retrieve previous related record details for.
Outputs
Output Type Description previousRelatedRecordDetailssObject. The collection of previous related record details for approval steps that use custom logic for auto-approvals.
Usage
To use this Apex action in approval workflows, see Define Rules and Conditions for Auto-Approval Resubmissions .
Example
POST
Here’s a sample request for the Get Previous Related Record Details action.
1 {
2 "flowOrchestrationInstanceId": "0jEDU0000001zeN",
3 "stepApiNameList": [
4 "ManagerApprovalStep",
5 "FinancialApprovalStep"
6 ]
7 }