- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 04:03 AM
Hi everyone,
I'm trying to exclude user groups from a reference field in a Service Catalog item. Specifically, I want to hide any groups that contain "Copilot" or "ITIL" in their name.
Here's what I've done so far:
Variable Type: Reference
Reference: sys_user_group
Reference Qualifier: Advanced
Script I'm using:
(function() {
return "nameNOT LIKECopilot^nameNOT LIKEITIL";
})();
But this doesn't seem to be working — I still see groups.
Is this script wrong or does NOT LIKE not work reliably in catalog items?
Any help or alternate solution would be appreciated!
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 04:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 05:05 AM
Ok. If you want to use adv ref qualifier, then you need to use the below.
javascript:'nameNOT LIKECopilot^nameNOT LIKEITIL';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 04:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 04:27 AM
@J Siva
Yes, I have achieved this using a simple approach, but I'm curious to understand how it works with an advanced reference qualifier and script. I want to learn how the scripting method functions under the hood.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 05:05 AM
Ok. If you want to use adv ref qualifier, then you need to use the below.
javascript:'nameNOT LIKECopilot^nameNOT LIKEITIL';