'Does Not Start With' Operator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2017 03:53 AM
Hi Friends,
I am in process of creating a report on Incident table. Require a suggestion on filter criteria please-
This is the filter criteria below i need to set (along with other simple condtions)-
CIs 'Do not Start With'- SAP , EAS, E1
Assignment Groups 'Do not Start With'- EAS, SAP, DBA, LSG.E1
While there is a 'Starts with' but no 'Does not start with' in ServiceNow. Any experience , thought will be highly appreciated.
Thanks,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 02:30 AM
Hi Apoorva D,
I have noticed your reply just now. So sorry for late reply.
You need to add those using AND logical operator like
'Name DOES NOT START with ECAB AND Name DOES NOT START with Knowledge AND Type DOES NOT CONTAIN 704093f22b08224072751cf405da1599'
That should be quite easy to adjust:
l1.addQuery('name', 'NOT LIKE', 'Knowledge%');
l1.addQuery('type', 'NOT LIKE', '704093f22b08224072751cf405da1599');