For more information, please refer to this announcement explaining best practices for getting answers to questions.
How to recognize all upper level managers in Approval Rules?
Summary:
How to recognize all upper level managers in Approval Rules?
Content (required):
We have a problem here. We had a Termination approval rules configured, if the transaction is submitted by line manager and worker's person type is Employee, then do something. But in our organization, sometimes the transaction will be submitted by line manager's manager or upper level manager, then this logic won't work. How to recognize manager's manager, and all upper level managers?
((transactionApprovalRequest.Requestor == GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor)) AND (Worker's Current Assignment.result.User Person Type == "Employee"))
Version (include the version you are using, if applicable):