The CreatorCon Call for Content is officially open! Get started here.

Modification of group ID for a particular group

Mayuri1711
Tera Contributor

Is it possible to modify the group ID of a particular group which is created
It was required to add prefix Dev# and for test as Test#
From AGID000000000171425 --> DEV#AGID000000000171425

4 REPLIES 4

Community Alums
Not applicable

Hi @Mayuri1711 ,

Can you provide a screenshot please.

 

Mayuri1711
Tera Contributor
 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Mayuri1711 

 

Yes, you can change the name of the group without any issue but make sure this group name is not hardcoded any where in code else it will create issue.

 

It will has no impact on sysid.

*************************************************************************************************************
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]

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

Aman Kumar S
Kilo Patron

Hi @Mayuri1711 

How are you currently setting the group ID?

If you want to fix this, you can just write a fix script and do it for your groups

Var groupGR = new GlideRecord("your_table_name");

groupGR.addEncodedQuery("write your encodedquery for which you want to chnage the group id");

groupGR.query();

while(groupGR.next()){

groupGR.group_id = "Dev#"+groupGR.group_id;// validate your field name

groupGR.update();

}

Best Regards
Aman Kumar