Changing the assignment group name

Sathiskumar_D
Giga Sage

Hello,

 

I have a group that is being used. There were 29K incidents assigned to this group. Now, customer wants to change the group name. When I did, it is showing as "invalid update". What else needs to be done to change the group name? How to trouble shoot this issue? Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Hi Satish..

 

Got it...There should not be any problem to change the group name manually but still 

can you check if there is any Data policy , Business rule running which is preventing to update the group name.

 

If there is business rule preventing it then can you try changing the name by below fix script :

 

/*1. Glide record on group*/

var grGrp =  new GlideRecord('sys_user_group');
grGrp.addQuery('sys_id','<sys id of group>');
grGrp.query();

if(grGrp.next()){

grGrp.name = "<new Group name>";
grGrp.setWorkflow(false);
grGrp.update();
}

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

6 REPLIES 6

Vishal Birajdar
Giga Sage

Hi @Sathiskumar_D 

 

The need is to change the Group name itself...??? OR to change the assignment group to different group for incident ??

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Sathiskumar_D
Giga Sage

change the group name itself.

Hi Satish..

 

Got it...There should not be any problem to change the group name manually but still 

can you check if there is any Data policy , Business rule running which is preventing to update the group name.

 

If there is business rule preventing it then can you try changing the name by below fix script :

 

/*1. Glide record on group*/

var grGrp =  new GlideRecord('sys_user_group');
grGrp.addQuery('sys_id','<sys id of group>');
grGrp.query();

if(grGrp.next()){

grGrp.name = "<new Group name>";
grGrp.setWorkflow(false);
grGrp.update();
}

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Kushal09
Tera Guru

Hi,

 

Changing the group name should work. But can you attach a couple screenshots here so we know what the error is?

 

Thanks,
Kushal