Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/06/2024 01:24 AM
Hello All,
I have few application roles with entitlements. When user selects application role A,B or C, he should go with one level approval and If he selects role D then second level approval should work.
Role A.B and C has customproperty3 as blank and role D has customproperty3 as 'Yes' value.
To add check, I wrote condition like (entitlement.customproperty3 == 'Yes' and (requestCounts. NEW_ACC_REQUESTS_COUNT <= 0)
When user selects role A,B or C, I am getting error script evaluation error: Cannot get property 'customproperty3' on null object
Also, the request is getting in PENDING at manager level approval. Please suggest.
Thanks.
09/06/2024 02:04 AM
Hi @SeemaDas Can you please share your workflow details? And if you are using role then why you are giving entitlement in the condition?
Regards,
Indra
09/06/2024 03:28 AM
@indra_hema_95 --- The application role has entitlement attached for that endpoint. And customproperty3 is defined on role level. So, Does it mean I should use role.customproperty3? Because I thought role attribute in workflow is for enterprise role. Thanks.
09/06/2024 03:37 AM
09/06/2024 04:32 AM
Hi @SeemaDas , nope you can add entitlement in a role but as a whole user is requesting for a role in ARS page so it will look for roles customproperty.
09/06/2024 06:05 AM
(entitlement ne null) and (entitlement.customproperty3 ne null) and (entitlement.customproperty3.contains('Yes') eq true) |