how to auto populate the value assignment group field based on another value in record producer

balmansour
Tera Contributor

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?

 

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@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.

Aniket Bhanse
Tera Guru

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.

@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!