- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:31 PM
Hi,
I have created an assignment rule and added one group(A) to Assigned to Group using a script.
if(condition ='true'){
current.assignment_group.setDisplayValue("A");
}
The above code is working fine.
Now I have a requirement where need to add three groups(A, B & C) in the Group field using the script.
Something like this:
if(condition ='true'){
current.assignment_group.setDisplayValue("A;B;C");
}
is this possible or is there any workaround for this?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:36 PM
Hi,
Assignment group field is of type Reference and it can hold only one value at a time.
It is not possible to set multiple assignment groups by any way.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:36 PM
Hi,
Assignment group field is of type Reference and it can hold only one value at a time.
It is not possible to set multiple assignment groups by any way.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:52 PM
Hi
Thanks for your response,
is there any other alternative approach for this kind of scenario? or appreciate your thoughts on this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 10:00 PM
You can create custom field on your table to add additional assignment groups.
Create a field of type 'List' referring to Group 'sys_user_group' table.
This can be used to populate additional assignment groups. Please check the behavior Watch List / Work Notes List field behavior.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:37 PM
Hi,
group field is reference field then it will hold only 1 value
how it would hold 3 groups?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader