Capturing record produce in update set

Humshain Ahmed
Tera Contributor

I created two record producers on my Dev instance and want to move it to test using update sets.

Is there any way i can capture the record producer in a new update set?

3 REPLIES 3

Vrushali  Kolte
Mega Sage

Hello @Humshain Ahmed ,

 

You can run below script in the background script to capture the created record producers in the new update set .

 

Create the new update set from > Local Update Set > make it your current update set > execute the below script.

var rec = new GlideRecord('sc_cat_item_producer'); //Record Producer table name.
rec.get('sys_id_record_producer'); //sys_id of the created record producer.
//Push the record into the current update set  
var um = new GlideUpdateManager2();
um.saveRecord(rec);

 

This script worked for me. If it solves your issue, please mark it as Helpful 👍 and Accepted ✔️ based on impact.

Regards

Vrushali Kolte

Ankur Bawiskar
Tera Patron
Tera Patron

@Humshain Ahmed 

Ensure you are in correct update set

simply add some description and save it

Then remove that description and again save it

It will get captured

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SunilKumar_P
Giga Sage

Hi @Humshain Ahmed ,

 

Create a new update set and make it as current and then you can use the Add/Force to update set UI action under related links.

 

Regards,

Sunil