
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:26 AM
So on a record we have two fields, Assignment Group and Assigned To.
I'm writing a UI Policy where Assigned To can only be filled in if you're a member of the chosen Assignment Group.
Here is that Policy logic:
This basically says, If the Assignment Group is one of my groups, then Assigned To field is NOT read-only. Otherwise, it is.
So, here is the policy in action:
I am a member of the ServiceNow Admin group. So why is Assigned To ready-only????
I turned on UI Policy debugging and here's what it says when I reload the form:
What?
assignment_group's value of "11a3bc9adb8b360083c9d411ce961934 [ServiceNow Admin] " with the condition( DYNAMIC d6435e965f510100a9ad2572f2b47744) evaluates to FALSE
Why is it returning false??
If I run this in a background script:
This is my result:
11a3bc9adb8b360083c9d411ce961934 is there, so it should return TRUE , meaning that it sees me in that group!
Any idea why the UI Policy's filter thinks I'm not in that group?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:33 AM
Dynamic filters doesn't work in UI Policy.
This post can give you better idea.
Please mark helpful/correct if my answer helped you in any way.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 02:41 AM
You're my savior 😍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 08:47 AM
slight change, but this worked:
Thank you very much.