- 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 02:37 AM
user table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 12:51 AM
Hi,
Could you provide some details such as those which are asked by Jaspal
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader