- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 07:44 AM
Hi Guys,
Is there a way to sync up tables from Prod to all sub instances?
Tables like:
- sys_user_group
- sys_user_grmember
- sys_choice
Thank you!
Regards,
Jocelyn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2020 12:33 PM
Hi Jocelyn,
There are multiple ways to synch up tables from Prod to other instances:
- Install Instance Data Replication (IDR) plug-in, you can purchase it from ServiceNow store. Product documentation is: https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/instance-data-replica...
- Request Cloning for your Prod instance.
- Perform XML file import.
- Create your own ServiceNow integration with the following steps:
- Create Scripted Rest API and use POST method,
- Create Business Rule or Flow Designer and define your trigger (i.e. when a new record in that particular table is created),
- Create table for import set row,
- Create transform map (i.e. source: your_scope_app.table, target: sys_user_group), please note if you want the data to have the same sys_id across instances then you can do transform script before insert.
Hope my answers above help solving your need.
Thanks.
Bachtiar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 12:11 PM
Hello
As per your last line "please note if you want the data to have the same sys_id across instances then you can do transform script before insert."
Could you please provide sample code of the transform script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 11:22 AM
See this DOC
which will tell you to do this:
Enter the following script:
if (action == "insert") {target.setNewGuidValue(source.u_sys_id); }
Click Submit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2025 08:43 PM
Hi @JLeong ,
May i ask what approach did you achieve for your requirement? thanks