Invoice Line Requester Name Approval Rule
Summary:
Invoice Line Requester Name Approval Rule
Content (required):
Trying to put a rule for the requester of the invoice line order to approve the invoice.
Starting Participant: HierarchyBuilder.getPrincipal(Invoice Line.Requester ID,-1,"","")
Top Participant: HierarchyBuilder.getPrincipal(Invoice Line.Requester ID,-1,"","")
The warning we are getting: RUL-05721: The result type of the expression is "Long" but should be "String".
I also tried the following:
HierarchyBuilder.getPrincipal(Invoice Line.Requester Name,-1,"","")
Top Participant: HierarchyBuilder.getPrincipal(Invoice Line.Requester Name,-1,"","")
The approval workflow ends in error.
As for requestor from the invoice header to approve, it worked, but that field is not auto-populated, so we're looking for a line-level rule.