Replicate group along with same sys_id in my all instances
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 12:21 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 12:39 AM
You need to export that group and then import into other instances then you will get the same sys_id's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 12:41 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 03:24 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 12:41 AM
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
Thank you,
Ali