Auto group assignment

MK-p
Tera Contributor

I want to assign group automatically based on ci class selected on incident.

Should i use onchange client script or assignment rule and why?

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

Hi @MK-p ,

 

If you have few scenarios then i would recommend you to go through assignment rule and if list is big then i would suggest you to with client script.

 

For client script you need do the following for best practice.

1. Store data maping in custom table.

2. Call script include to get the group name based on ci class in your onchange client script.

 

For assignment rule you just need to do configuration like below.

RunjayPatel_0-1735644851447.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@MK-p 

you should use assignment rule but if the logic is complex then you can use before insert BR

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MK-p 

 

May I know what is needed to use the CI class-based group? OOTB There is a BR Populate Assignment Group based on CI/SO. This rule is good and based on the value in CI or SO to populate  the group. I will not recommend changing this, but if you want give it a try.

 

AGLearnNGrow_0-1735645792797.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************