Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to check enterprise role name in workflow

SeemaDas
New Contributor III
New Contributor III

Hello, I am working on enterprise roles and have a requirement to have 2 level approval workflow if user requests perticular role. For example, if user selects enterprise role1, then it should send approval to usergroup for role1.

I want to check the role name in workflow condition. I tried following

entitltment.name.contains("role1")

role.role_name=="role1"

Both of these not working. 

 

Is there any way to check the enterprise role name in if-else condition?

 

5 REPLIES 5

CR
Regular Contributor III
Regular Contributor III

try like below

role.role_name == 'Role'


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

PremMahadikar
Regular Contributor III
Regular Contributor III

Hi @SeemaDas ,

role.role_name == 'RoleFF'

PremMahadikar_1-1710854871176.png

 

If this reply answers your question, please consider selecting Accept As Solution and hit kudos.

It worked when I check only rolename, but I was providing following condition

((role.role_name=='%Role%') and (ars_requests.requesttype==4)), Not sure why this is not worked

you are giving wildcard and using ==, this might be the issue your query is not working. try 

role.role_name like '%Role%' and see if this helps

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

((role.role_name.contains('Role')) and (ars_requests.requesttype==4))


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.