Is it possible to update an existing record using XML?

Jordan Dehneh
Tera Expert

Hello developers,

I have records on two instances and they are the same records (same sys_ids). If I updated these records on one instance, is it possible to move these changes (or updates) of these records to the second instance as XML?

thanks in advance

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Yes it is possible to Export and Import the XML. When the sys_id is the same it will overwrite/update the existing one.

On the record:

find_real_file.png

 

On the table of your other instance import:

find_real_file.png

 

 

But as a good practice I would use an Update set to transfer the record.

 

To force a record into an update set you can refer to:

https://www.servicenowguru.com/system-definition/manual-update-set-inclusion/

View solution in original post

3 REPLIES 3

Willem
Giga Sage
Giga Sage

Yes it is possible to Export and Import the XML. When the sys_id is the same it will overwrite/update the existing one.

On the record:

find_real_file.png

 

On the table of your other instance import:

find_real_file.png

 

 

But as a good practice I would use an Update set to transfer the record.

 

To force a record into an update set you can refer to:

https://www.servicenowguru.com/system-definition/manual-update-set-inclusion/

Thank you it's now working 🙂

Vamshi dhar
Kilo Guru

Hello Jordan,

Yes, the best approach is to export XML and import XML because records won't be captured in update sets

 

Thanks

Vamshidhar