Using GetApprovers PeopleCode

GetApprovers PeopleCode determines the entire list of required approvals based on the rules that are defined in an approval rule set. GetApprovers evaluates all approval steps at once so that you receive a complete list of approvers from the entire approval chain.

Typically, you include GetApprovers in the Workflow PeopleCode for the transaction that requires approval.