The CreatorCon Call for Content is officially open! Get started here.

Capture Tables and Fields in update set

Mark Wood
Tera Contributor

Hello Experts,

I have created a table with multiple fields but I forgot to capture them in the update set. now I am trying to capture them using the below code but still am not able to capture them .can anyone please guide me how can I capture them in my new update set? or do I need to create another table with new fields to capture them in current update set.

please guide me thank you.

var gr=new GlideRecord('sys_db_object');
gr.addQuery('sys_id',"f7f8a3681b9e7910a72cfdd2cd4bcb09");
gr.query();
if(gr.next())
{
var um=new GlideUpdateManager2();
um.saveRecord(gr);
gs.print("record saved");



}
1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Mark,

You can try navigating to sys_update_xml table and then look for records and update the Update set name in which you want to capture records.

View solution in original post

7 REPLIES 7

Jaspal Singh
Mega Patron
Mega Patron

Hi Mark,

You can try navigating to sys_update_xml table and then look for records and update the Update set name in which you want to capture records.

Hi @Mark Wood  just checking if you managed to get above worked and if so, kindly close the thread by marking suitable answer correct.

SANDEEP28
Mega Sage

@Mark Wood You can install "Add to update set" utility in you instance by importing xml present in below link

 

https://developer.servicenow.com/connect.do#!/share/contents/9824957_add_to_update_set_utility?t=PRO...

 

Once you import this xml, you will get "Add to Update Set" related link. Make sure your update set is selected where you want to capture these details before clicking on "Add to Update Set" link.

 

SANDEEP28_0-1698840702382.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

Hello @SANDEEP28 ,

I've downloaded the XML file for the Add to Update Set utility. My question is, where do I need to import the downloaded XML file for the Add to Update Set utility? Please guide me. Thank you for your assistance.