Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

null in encoded query

samadam
Kilo Sage

I am trying to check if the field is null in an encoded query, tried using =NULL and ="" and doesn't seem to be working.

gr.addEncodedQuery('owner_group=wintel^state=6^assigned_to=""^EQ');

Any ideas?

Thanks

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Try ISEMPTY.



gr.addEncodedQuery('owner_group=wintel^state=6^assigned_toISEMPTY^EQ');



Don't forget, you can always build your query using the list builder and then right click on the breadcrumb and select Copy Query.




View solution in original post

4 REPLIES 4

Chuck Tomasi
Tera Patron

Try ISEMPTY.



gr.addEncodedQuery('owner_group=wintel^state=6^assigned_toISEMPTY^EQ');



Don't forget, you can always build your query using the list builder and then right click on the breadcrumb and select Copy Query.




Chuck Tomasi
Tera Patron

Example of what I described above...


find_real_file.png



find_real_file.png



active=true^ORassignment_groupISEMPTY


That worked. Thank you.


Midhun1
Giga Guru

Hi,


You can use :



target.addNullQuery('field_name');