and more in a single search tool across platforms. Read the announcement here. |
03/19/2024 04:23 AM
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?
Solved! Go to Solution.
03/19/2024 06:00 AM
try like below
role.role_name == 'Role'
03/19/2024 06:28 AM
Hi @SeemaDas ,
role.role_name == 'RoleFF'
If this reply answers your question, please consider selecting Accept As Solution and hit kudos.
03/19/2024 07:31 AM
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
03/19/2024 07:52 AM
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
03/19/2024 07:15 PM
((role.role_name.contains('Role')) and (ars_requests.requesttype==4))