Use addNullQuery(x) in favour of addQuery(x, '') in ServiceNow
Import
·
Apr 04, 2023
·
video
why do this when you can do this now of course they're going to return the same results they're both going to return records where the field that you pass in is empty why people use one over the other one do people favor the the one you see all the time right equals nothing nothing um I think it's purely because of they don't know about it add null query is something you don't see all the time but it's there it's there you just start typing it's going to appear so give it a shot today and if nothing else it'll make your life slightly easier and it'll score you extra nerd points with your service now button
View original source
https://www.youtube.com/watch?v=6tO7PyJVA9s