- 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 07:13 AM
Hi @Sathiskumar_D ,
Hope you are doing great.
Changing the group name is not problem , it should work in servicenow.
Can you please make a note on below points when changing the group name :
When changing a group name in ServiceNow, there are a few steps to follow to ensure a smooth transition:
-
Update Group Name: Navigate to the "Groups" table and locate the group you wish to modify. Change the "Name" field to the desired new name.
-
Update References: Check for any references to this group in other tables, such as incidents, tasks, or any custom tables. These references should also be updated with the new group name.
-
Update Workflows: If there are any workflows or business rules that reference this group, ensure they are updated with the new name as well.
-
Update ACLs (Access Control Lists): If this group is used in ACLs, update them to reflect the new group name
or can you please share more details on error an stes you are trying to follow.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 11:37 AM
Ok..there is a "unique" key which is restricting the change. Also, it is a duplicate. I changed the one of the duplicate to something different and it worked!. thanks for all your support.