- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 06:37 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 07:05 AM
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();
}
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 06:56 AM
The need is to change the Group name itself...??? OR to change the assignment group to different group for incident ??
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 06:57 AM
change the group name itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 07:05 AM
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();
}
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 07:00 AM
Hi,
Changing the group name should work. But can you attach a couple screenshots here so we know what the error is?
Thanks,
Kushal