
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 07-30-2020 11:48 PM
The Instance Data Replication feature is a separate subscription - you have to pay for it.
If you want to replicate data between ServiceNow instances, there is a simple way to do that with a standard platform functionality: import sets.
What you need:
a) a service account on the source instance that is configured correctly permissions-wise
b) a JSON data source on the target instance that pulls the data from the source instance
c) the transform maps, if necessary (NOT covered in this article)
Below you will see how to set up your JSON data source using the standard JSONv2 web service. So first we'll check that data that we want to pull from the source instance.
Looking into the JSON that is delivered by the source instance when calling the ?JSONv2 processor, we find that the actual records are in an array (after the "records"). This is important for the "Path for each row" field in the data source.
Fore some unknown reason "records" has to be addressed twice (!) - as shown in the screenshot below. Important: the "Path for each row" field is NOT on the default view. You have to put it on the form.
If you click now either "Test Load 20 Records" or "Load All Records", you will find the data in the import set table and you can start defining your transform maps.
Have fun with you "DIY instance data replicator" 🙂
Alternatively, you can also use Web Service Import Sets - they are used to push data to a ServiceNow instance.
- 2,463 Views