how to auto populate the value assignment group field based on another value in record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 02:22 AM - edited 10-26-2023 02:23 AM
I want to auto populate the assignment group value based on selected coordinator value when the change is submitted,
I tried this script:
current.assignment_group ="grsys_id";
but every coordinator have different group
any tips?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 02:26 AM
@balmansour You can use Assignment rule feature of ServiceNow to assign a ticket based on certain conditions. For more information please refer to https://docs.servicenow.com/en-US/bundle/vancouver-platform-administration/page/administer/task-tabl....
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 02:30 AM
It seems like you are using a After Business rule where you are writing the script and "Coordinator" is one of the field on the Change form:
You can use "if" condition in the script as below:
if (current.u_corrdinator == "enter the value here") {
current.assignment_group = "enter the sys_id of the group here";
}
// Note: Capture the sys_id in a system property and then call the system property in the above code
Let me now if this helps and mark it as correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 12:04 AM
@balmansour if your issue is resolved, please mark an answer Correct. This way the thread will be closed and it will help other users too.
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 02:44 AM