"Query Rules" is not getting triggered.

Sathwik1
Tera Expert

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?

@Ankur Bawiskar

6 REPLIES 6

I want to restrict it based on PRODUCT Wise

@Sathwik1 

I haven't used query rules much

may be you will have to deep dive and explore

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader