You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Inactive Employees Get Error in Approval Rule. What kind of rule should be written?

Question
1
Views
0
Comments
edited Mar 7, 2024 8:33PM in Human Capital Management

After people are terminated, when we add documents for these people, the system gives us an error.

How can we solve this problem?

I found the code below and added it to the approval route, but it did not work. What can you suggest?

' ((getNewDoRByTransactionIdResponse.result.AuthorizationRequired == "Y") AND (NOT (GetAllRepresentatives("HR_REP",Task.payload.getRepresentativeListWrapperResponse.result) contains transactionApprovalRequest.Requestor)) '

(We use approval rules)

The problem is that this approval route is included in the wrong rule.

The system gives an error when document records are entered for inactive employees.

When a document record is entered for active employees, it must be included in the correct approval rule in the system.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!