How can we effectively manage document records approval workflows for terminated employees?
We have established approval rules for Document Records in the Transaction Console with the following criteria:
- Approval rule 1: No approval is required due to the document type setup, determined by the condition: (getNewDoRByTransactionIdResponse.result.AuthorizationRequired == "N")
- Approval rule 2: If an HR representative initiates the transaction, but it involves a record that is not their own, the conditions are as follows: ((getNewDoRByTransactionIdResponse.result.AuthorizationRequired == "Y") AND (The transaction requestor is in the list of representatives obtained from GetAllRepresentatives("HR_REP", Task.payload.getRepresentativeListWrapperResponse.result)) AND (getRequestorInformationByPersonIdResponse.result.User Name != transactionApprovalRequest.Requestor))
- Approval rule 3: When an HR representative initiates a transaction involving their own record, the conditions are: ((getNewDoRByTransactionIdResponse.result.AuthorizationRequired == "Y") AND (The transaction requestor is in the list of representatives obtained from GetAllRepresentatives("HR_REP", Task.payload.getRepresentativeListWrapperResponse.result)) AND (getRequestorInformationByPersonIdResponse.result.User Name == transactionApprovalRequest.Requestor))
Tagged:
0