- 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 10:02 PM
Can you explain what's your business requirement here?
If business requires the field to be holding multiple groups then it should be a list field referring to Group table
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader