Do we have LIKE / NOT LIKE conditions in ServiceNow to use in Scripting ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 02:03 AM
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%';
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 02:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 03:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 03:58 AM
First link is useful , thanks