What’s the difference between GlideRecord’s addQuery() vs. encoded queries – when to use which?

dalvipranit
Kilo Explorer

What’s the difference between GlideRecord’s addQuery() vs. encoded queries – when to use which?

1 REPLY 1

Rafael Batistot
Kilo Patron

Hi @dalvipranit 

 

Here the best explanation 

 

using addQuery() you can give filter based upon the one field,

 

using addEncodedQuery() you can filter the record based upon the multiple fileds (you can copy the breadcrumb string and use as it is in encoded query under quotes).


https://www.servicenow.com/community/service-management-forum/what-is-the-difference-between-add-que...