How to transfer the changes which don't get captured in update sets?

SandeepKSingh
Kilo Sage

Can anyone help me with Script ?

1 ACCEPTED SOLUTION

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 
Here are two ways:
1. Transfer record via XML export.
2. We can use GlideUpdateManager2 API script as shown below which allows us to capture any record in current update set:

var um = new GlideUpdateManager2();
um.saveRecord(current);
//current is gliderecord object, you can pass any other gliderecord object if required.

Note : This script needs to run in background script.

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

7 REPLIES 7

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 
Here are two ways:
1. Transfer record via XML export.
2. We can use GlideUpdateManager2 API script as shown below which allows us to capture any record in current update set:

var um = new GlideUpdateManager2();
um.saveRecord(current);
//current is gliderecord object, you can pass any other gliderecord object if required.

Note : This script needs to run in background script.

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Thanks @Ravi Gaurav thanks for the script will check

Thanks @Ravi Gaurav  this worked

 

yuvarajkate
Giga Guru

1. Export and Import XML

  • Best for individual records like system properties, roles, or configurations.
  • Steps:
    1. Right-click the record header → ExportXML.
    2. Import the XML in the target instance via Import XML.

2. Data Export and Import

  • Best for bulk data like table records or list views.
  • Steps:
    1. Export data from the source using Export > Excel/CSV.
    2. Import it into the target instance using Load Data → Map fields.

3. Manual Transfer

  • Best for scripts, email templates, and notifications.
  • Steps:
    1. Copy the content from the source instance.
    2. Paste it into the respective section of the target instance.