Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

How to check application role's customproperty value in workflow

SeemaDas
New Contributor III
New Contributor III

  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.

5 REPLIES 5

indra_hema_95
Regular Contributor III
Regular Contributor III

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

@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.

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @SeemaDas yes, try with role. 

Regards,

Indra

NM
Esteemed Contributor
Esteemed Contributor

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.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star
  • (entitlement ne null) and (entitlement.customproperty3 ne null) and (entitlement.customproperty3.contains('Yes') eq true)


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.