- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 02:38 AM
Hi All,
i create one UI policy in that i added some filter conditions like.
State is one of high, critical,
And
Assignment group. name does not contains HIK
And
caller is not Sam
or
caller is not RIck.
caller field is reference field from sys_user table.
order of the UI policy also correct.
i using the above conditions but UI policy is not working can any one help on this how to archive this.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 03:05 AM
Your conditions must always be AND if you don't want either user to match.
So, change the OR between the callers to AND.
Now you're saying OR so if you select Rick, then caller is not Sam and it evaluates to true.
If you change it to AND caller is not Rick, then it checks that Caller is Rick, but not Sam, but since AND requires both to be true, the condition will fail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 02:55 AM
Hi @ANWAR BASHA,
Make sure there are no other UI policies/Client scripts conflicting with the same fields.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 03:01 AM
Hi Sagar ,
No UI policy and client scripts are not conflicting to that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 02:56 AM
so did you check for which condition it's failing
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 02:57 AM
yes @Ankur Bawiskar caller condtion only