Replicate group along with same sys_id in my all instances

smruti
Kilo Contributor

I have a requirement. Whenever a group is created in one of my servicenow instance, the group should auto replicate to other instances. My problem is to maintain sys_id of group in all instances if I use REST API to transfer group info. How can I achive it. Any help is highly appreciated.

Thanks,

Smruti

7 REPLIES 7

SaiRaviKiran Ak
Giga Guru

You need to export that group and then import into other instances then you will get the same sys_id's 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Smruti,

How are you syncing the groups in both the instances. I think you can send sys_id from instance 1 to instance 2 and use set target guid

But I have not tested this.

Why do you want to maintain sys_id as unique. I think group name unique should be sufficient in order to create/update record in instance 2

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

I want to maintain same sys_id. Because whenever I will create any workflow/assignment rule and transfer this to other instances then there should not be any impact.

 

Thanks,

Smruti

Ahmmed Ali
Mega Sage

Hello,

 

one easy method would be exporting group record from source instance as xml and import the same xml in target instance.

in group table list view, filter the list to have only groups which you want to export. then right click on the list header and select, export > XML.

 

in target instance, go to group table list and right click on the header and select import xml, give your xml file and import.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali