is there a way to exclude items that start with a string from reference qualifiers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 06:53 AM
I have a need to present a reference variable on a catalog item where a value does not start with certain strings.
e.g. suppose I need to exclude users named 'Bob' from being selected.
I can do:
'NAME' starts with 'Bob' OR
'NAME' starts with 'Robert'
and get a list of the users I want to exclude, but I can't show a list of everyone except that query.
I tried using the 'matches regex' and 'matches pattern' qualifiers but as far as I can tell neither of these qualifiers work.
Is there a way of doing this? or is there a super-secret method to make 'matches regex' work?
Thanks in advance.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 06:58 AM
Hi,
something like this
javascript: 'nameNOT LIKE' + 'StartString%';
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader