Get Previous Related Record Details Action
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.
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.
| Input | Type | Description |
|---|---|---|
flowOrchestrationInstanceId | string | Required. The ID of the flow orchestration instance associated with the approval submission. |
stepApiNamesList | string | Required. The comma-delimited list of step API names to retrieve previous related record details for. |
| Output | Type | Description |
|---|---|---|
previousRelatedRecordDetails | sObject. | The collection of previous related record details for approval steps that use custom logic for auto-approvals. |
To use this Apex action in approval workflows, see Define Rules and Conditions for Auto-Approval Resubmissions.
POST
Here’s a sample request for the Get Previous Related Record Details action.