Does not start with query??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2019 10:30 PM
Hi All,
Is there any way I can have a query which filters out group names that start with 'OG'? There are almost more than 200 groups that I need to filter out using reference qualifier but not sure how to query it as we dont have any operator for that?
Appreciate your help on this.
Thanks in advance,
Prajakta
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2019 10:46 PM
Hi there,
Have you had a look at encoded queries?
You could make a filter at lists, and simple copy the generated query. So also with a does not start query for example.
(active=true^incident_state!=6^short_descriptionNOT LIKEsomething)
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2019 10:59 PM
Hi Mark,
Yes I tried above query but this will also remove any other group with contains OG, we just want to filter out the ones which start with OG.
Best Regards,
Prajakta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2019 11:07 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 06:33 AM
Hi
My answer is very late, but maybe not too late 🙂
I achieved to do something like a "DOES NOT START WITH" query, by adding TWO "BETWEEN" conditions, which ranges from (let's say) "A" to "IB" (and I wanted to leave out all starting with "IC") and another one starting with "ID" and going to nowhere.
This just filtered out what I was expecting.
Maybe that is also suitable here.
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk