Do we have LIKE / NOT LIKE conditions in ServiceNow to use in Scripting ?

Sama4
Kilo Expert

Hi,

Do we have LIKE/NOT LIKE conditions which can be used in add Query of the script. ?   Just like below in SQL:

SELECT * FROM Customers

WHERE Country NOT LIKE '%land%';

7 REPLIES 7

Deepa Srivastav
Kilo Sage

Yes we can use...



Check below link....



Operators Available for Filters and Queries - ServiceNow Wiki


also check 8.2 section .(addEncodedQuery)


http://wiki.servicenow.com/?title=GlideRecord#gsc.tab=0


Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa


Hi ,


Let me know if you need any other clarification on this or mark the answer as correct to close the thread. That way it will help other who have same query in future.
Find correct option in the below link.



Do we have LIKE / NOT LIKE conditions in ServiceNow to use in Scripting ?



Thanks,
Deepa


First link is useful , thanks