How do I combine two groups together?

Beto
Mega Guru

I am trying to combine two groups. I have a "Physician Support" group and a "Clinical Support" group that I want to just merge into "Clinical Support" group and do away with "Physician Support." We are doing this through AD. How can I complete this? How would all the past historical reporting and tickets look like?

1 ACCEPTED SOLUTION

You can run one time fix script to assign records from task to "Clinical Support " group.



var task = new GlideRecord('task');


task.addEncodedQuery('assignment_group=aaccc971c0a8001500fe1ff4302de101'); // sys_id of " Physician Support" group in your case


task.query();


while(task.next()){



task.assignment_group = "sys_id"; // sys_id of clinical support group


task.update();


}


View solution in original post

4 REPLIES 4

SanjivMeher
Kilo Patron
Kilo Patron

Hi Bryant,



You need to first add members in Physician Support to Clinical Support.


Then in task table, assign all active and inactive records assigned to Clinical support.


Then deactivate the Physician Support group.


If there are any assignment lookup rule exists for Physician Support, point it to Clinical Support.



Please mark this response as correct or helpful if it assisted you with your question.

I added all members into Clinical Support within AD and see them now in ServiceNow. I am in the task table, how do I assign active and inactive records? I'm little lost on this part.


You can run one time fix script to assign records from task to "Clinical Support " group.



var task = new GlideRecord('task');


task.addEncodedQuery('assignment_group=aaccc971c0a8001500fe1ff4302de101'); // sys_id of " Physician Support" group in your case


task.query();


while(task.next()){



task.assignment_group = "sys_id"; // sys_id of clinical support group


task.update();


}


Thanks that worked!