"Query Rules" is not getting triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
The "Query Rules" functionality is not working as expected. There was a OOB query rule set up to display records based on the logged-in user's account.
For example, if a user is mapped to an account with 10 cases, only those 10 cases should be shown to them.
Recently, I modified the filter condition to use sysID IS ONE OF "CALLED SCRIPT INCLUDE AND FUNCTION", which is supposed to return specific cases based on the function's output.
While the "SCRIPT INCLUDE AND FUNCTION"" itself works perfectly in the background (I’ve tested the output using logs), the query rule is still not functioning.
No logs are being generated, and in the front portal, when the case table is accessed through the DataInstance widget, the logic isn't being applied.
Could anyone help with troubleshooting why the query rule isn’t working as expected?
- Labels:
-
CSM Data Foundation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
I want to restrict it based on PRODUCT Wise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I haven't used query rules much
may be you will have to deep dive and explore
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader