- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi ,
Assigned to field in a form needs populate the users from particular assignment group members.
this assigned to from task and override to the new table. Please provide reference qualifier to get the group members in that .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Then create dictionary override for your table for that field.
Ensure "Override reference qualifier" = True
Paste the script I gave in Reference qualifier field
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
@Arun_Manoj
Please try with below Code :-
javascript:
(function() {
var members = [];
var grp = current.assignment_group;
if (grp) {
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group', grp);
gr.query();
while (gr.next()) {
members.push(gr.user.toString());
}
}
return 'sys_idIN' + members.join(','); // You can go through by defining a variable.
})();
Please accept my answer and mark as helpful/correct if it resolves your query.
Regards,
Nitish