Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Filtering on List view generated by query business rule having "Top level OR" condition.

Nidhi Kulkarni
Tera Contributor

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');
    }

1 REPLY 1

abbasshaik4
Tera Sage

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