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.

InputTypeDescription
flowOrchestrationInstanceIdstringRequired. The ID of the flow orchestration instance associated with the approval submission.
stepApiNamesListstringRequired. The comma-delimited list of step API names to retrieve previous related record details for.
OutputTypeDescription
previousRelatedRecordDetailssObject.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.