When a requestee is requesting access for user whose manager is also the entitlement owner, then single approval should approve both levels. Right now, two approval tasks getting generated one for manager and other for entitlement owner, instead upon manager approval, it should auto-approve entitlement owner level task if manager and entitlement owner is same.
Is there any way to achieve this?
Solved! Go to Solution.
An if-else block can be used in this case before the 2nd level approval with condition manager equals the entitlement owner in the condition. You can test with the below query. Please confirm if it works.
"condition:endpoints.requestowner eq user.manager"
Thanks for the suggestion. I tried following condition and it is working
Whereas It is failing for blank owner (when owner is not set for Group). Any suggestions on how to check blank owner.
I am trying
(entitlement.ownerRank1 == null) or (entitlement.ownerRank1.size () == 0)
But this does not go-to custom approver group, instead it goes to Saviynt admin for approval