- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:29 AM
I have one list type field >> If I go and search it has to show particular group members
for that I stored sys_id of that group in system property
can any one help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:35 AM
Hi
javascript: new <scriptIncludeName>.<functionName>;
functionName: function(){
var groupSys_id = gs.getProperty('<Property Name>');
var groupMem = new GlideRecord('sys_user_grmember');
groupMem.addEncodedQuery('group='+ groupSys_id);
groupMem.query();
var users = [];
while (groupMem.next()){
users.push(groupMem.user.toString());
}
return 'sys_idIN' + users.toString());
},
If my response is helpful, then Please mark it as Correct Answer/Helpful.
Please check and let us know.
Thanks 🙂
Shakeel Shaik.
Shakeel Shaik 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:35 AM
Hi
javascript: new <scriptIncludeName>.<functionName>;
functionName: function(){
var groupSys_id = gs.getProperty('<Property Name>');
var groupMem = new GlideRecord('sys_user_grmember');
groupMem.addEncodedQuery('group='+ groupSys_id);
groupMem.query();
var users = [];
while (groupMem.next()){
users.push(groupMem.user.toString());
}
return 'sys_idIN' + users.toString());
},
If my response is helpful, then Please mark it as Correct Answer/Helpful.
Please check and let us know.
Thanks 🙂
Shakeel Shaik.
Shakeel Shaik 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:36 AM
Thanks
I will check & let you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 04:22 AM
Its working
Tq shakeel shaik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:48 AM
List Type field is reference to which table?
Group? Group-Membership?