Filtering on List view generated by query business rule having "Top level OR" condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2023 12:11 AM
I am trying to filter records through before query business rule, in which the query has ^NQ (Top level OR) condition which is returning correct number of records but after applying any operation on list view like filtering it the results shown are not correct.
This is a known error of serviceNow but is there any different way to acheive this query condition.
function onBefore(current, previous) {
current.addEncodedQuery('active=false^NQactive=true');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2023 10:14 PM
Hello @Nidhi Kulkarni,
Please refer to the below link:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750199
Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik