DOES NOT CONTAIN operator not working with glide record

janindiadoc_1
Tera Expert

I need to exclude some records with with short description that contains "XXX_PRO - ". I added the query condition in the glide record as below. There are so many other conditions where i am not able to add that as an encoded query. I added the below condition to the query, but still its fetching the records with the below text.

gr.addQuery('short_description', 'DOES NOT CONTAIN', 'XXX_PRO -');

7 REPLIES 7

Hi,

yes it will

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Anjana_ps,

As is contained in others' replies, there's not "DOES NOT CONTAIN" operator. It's "NOT LIKE" operator in .addEncodedQuery().

To get the query, setup and run the filter on the table. Right click on the filter breadcrumb and select "Copy query" to copy the query string.

find_real_file.png

 

 

really?

JamesFricker_0-1744759315093.png