tony_barratt
ServiceNow Employee

Hi Aman,



If you want to use an encoded query it is a good idea to build the query in a list view and copy it.


For example:


Screen Shot 2016-05-22 at 6.57.51 AM.JPG



active=true^state<6^ORactive!=true



This means the the syntax is always correct plus you can check the logic is in line with what you want to achieve by looking at the result set.



Best Regards



Tony