Does anyone know whether GetRepresentative() is workable for Payroll Time Card Approval
Summary:
Hello Team,
We have a AOR Type called "AA"and "BB", and since our approval would like to send to "AA" if "AA exists for the employee, if not, then send to "BB" for approval.
We have used
Rule 1: ( ( GetRepresentative("AA",Task.payload.getRepresentativeListResponse.result) != "" ) || ( GetRepresentative("AA",Task.payload.getRepresentativeListResponse.result) != null ) ) ⇒ Then assign to "AA"
Rule 2: ( ( GetRepresentative("AA",Task.payload.getRepresentativeListResponse.result) == "" ) || ( GetRepresentative("AA",Task.payload.getRepresentativeListResponse.result) == null ) ) ⇒ Then assign to "BB"
However, the system return Rule 1 = true ; Rule 2 = false for employee does not have "AA" from the system, and cause the rule error as the system cannot find "AA"