- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 06:48 PM
ISSUE WITH ADVANCE REFERENCE QUALIFIER
Created Advanced Reference Qualifier in Catalog Item (with variables 'group' and 'assigned')
to fetch values of users only of selected group.
But this is not working
Needed help to solve this.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 09:15 PM
@shivani18 Please modify the reference qualifier as follows.
replace assignment_group with group in your reference qualifier.
Regarding sys_id display, please make the following change in the Group Member table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:13 AM
@shivani18 I have sent a direct message to you. Please check your inbox.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 08:14 PM
Hi @shivani18
You can refer to this below link
Advanced Filtering of List Collector Variables - D... - ServiceNow Community
Mark this Helpful !!. If this Helps you to understand. This will help both the community and me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 09:00 PM
Hi @shivani18
User Advanced reference qualifier for the assignment group
- Add the below script in the “Reference qual” field
javascript:new getAssignmentGroups().filterd(current);
- And create a new Script include with name “getAssignmentGroups” and function “filterd”
var getAssignmentGroups= Class.create();
getAssignmentGroups.prototype = {
initialize: function() {
},
filterd: function(current)
{
var groups = [];
var assigned_to= current.assigned_to;
if(assigned_to!= '')
{
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user',assigned_to);
gr.query();
while(gr.next())
{
groups.push(gr.group);
}
}
return 'sys_idIN' + groups;
},
type: 'getAssignmentGroups'
};
Mark this Helpful and Correct !!. If this Helps you to understand. This will help both the community and me.