Alternative for 'IS NOT ONE OF' operator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 04:55 AM
Hi,
I have a set of CIs(90) and there is no way to get them through query, it is a list and we have to just use it as is.
I have to add it to SLA definition in a way that SLA does not attach if the CI is in that list. There is no option for using the operator 'is not one of' else my life would be simple.
Any suggestions?
-Anurag
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 05:16 AM
It needs to go in the SLA start condition, using 90 <IS NOT> is not an option as the condition field is 1000 characters and it is exceeding that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 05:23 AM
Ahh clear!
Creating a new Dynamic Filter maybe an option? Though I don't know how the performance would be. Also the list will then be hardcoded in the Dynamic Filter which might not be what you are after.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
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
12-20-2019 05:44 AM
I did just that, but now the issue i ran into is, i need to exclude those 90 CIs, and the dynamic filter runs as
CI <is (dynamic)><my dynamic filter>
This would work well if i had to return a list of 90 CIs but since i have to exclude, i cannot return all CIs except those 90, it will certainly not work.
If i can achieve it this way, it would be best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 05:50 AM
Could you add a checkbox field to the cmdb_ci table, default it to false and mark each CI you need to exclude as true? Then you can exclude them based on that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 05:55 AM
Hi David,
Im trying to avoid creating any new field on CMDB or the task record in question. But thanks for the suggestion.
Ill put a pin in that and call it plan B.
-Anurag