and more in a single search tool across platforms. Read the announcement here. |
03/13/2023 11:09 PM
I am trying to query to see list of entitlement that is supposed to be assigned by Enterprise Role.
Here is dynmic attr with Query.
Then we have "if-else" block, to check if entitlement.displayname is same as entitlement selected.
Here is "if-else" block in workflow
ideally, it is supposed to be routed to "Grant Access" block but it's actually routed to "manager approval" block.
dynamicAttributes.get('entitlementinrole') == entitlement.displayname
Could you please confirm what I did wrong in this case?
Solved! Go to Solution.
03/13/2023 11:49 PM
Hi @ejeong ,
Wouldn't the query in the dynamic attribute return more than one row/record when the enterprise role has more than one entitlement? What is the requirement and what are you trying to achieve here?
03/14/2023 12:12 AM
Please refer to screenshot below, I want to make auto approve when dynamic attr == entitlement.displayname
03/14/2023 12:19 AM
You may want to try the following expression:
dynamicAttributes.get('TestAccessDate')!=null and entitlement!=null and dynamicAttributes.get('TestAccessDate').equals(entitlement.displayname)
Note - pls replace TestAccessDate with the name of the dynamic attribute which you have configured.
03/14/2023 12:30 AM
03/14/2023 12:50 AM
You may want to check the logs and validate if there are any specific errors/exceptions being logged when the workflow is triggered.
03/14/2023 12:55 AM
If there is an error, i shouldnt be able to submit this request. I may need to know why its going to false condition.
03/14/2023 04:50 AM
I have validated the above expression in one of the environments and it's working as expected. This might be an issue with the data. Maybe try with a different entitlement or different set of data.
03/14/2023 05:01 AM
Interesting. Let me test with another entitlement.
03/14/2023 06:02 AM
I tried with new workflow and different ent but it's still routing to manager approval
here is workflow
03/14/2023 06:07 AM