How to import data with related list records

Steveanner
Tera Contributor

Hello Community,

 

we are trying to import the data from one personal dev instance to other, But we are facing some issue here.

We have lot of records in instance A having records with related list records .Can anyone have any idea how to import with related list records as well?

 

Thanks,

Steve An

8 REPLIES 8

is there any sample script to move the data with related records.

 

Thanks,

Steve An

Hi,

Please find below link. Only change you should point the releated list table.

https://developer.servicenow.com/dev.do#!/learn/courses/sandiego/app_store_learnv2_rest_sandiego_res...

 

Regards,

Suresh.

Regards,
Suresh.

 

Adding one more link for further reference.

 

https://www.servicenow.com/community/developer-articles/starting-with-rest-apis-servicenow-integrati...

 

Regards,

Suresh.

Regards,
Suresh.

Pavankumar_1
Mega Patron

Hi @Steveanner ,

Even if you export XML and import on target this will not work for related list data.

But you you can try below steps.

1. First export the all the records in XML and then Export all the related list records.

2. First import the normal data and then import on related list data on related list table.

 

Example: if we need to import incidents data and related incident task.

First import the incidents(incident table) and then incident tasks(incident_task table).

 

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar