How to manually add a record in Update Set?

loteodor
Kilo Contributor

Hi,

I am developing a custom application and I am trasferring an Update Set from a Test istance to Production. Due to the team inexperience some customizations has been not recorded in the current Update Set.

Can I manually add an element (a table field, an entire table, a business rules, ecc.) to a particular Update Set? I would like to avoid to do an 'Update/Save' operation to every customization i lost during the development, in order to see a new record in the Update Set..

Thank you

Lorenzo

11 REPLIES 11

ohhgr
Kilo Sage
Kilo Sage

Hi Lorenzo,



Could you check if those customizations are caught in some other update set? Most probably those would be caught in Default update set. If there's no entry related to that particular record, you can manually change update set from default to your one.



Another way would be to create a new Update Set, move above customizations from Default to this new update set by changing Update set field. Then you can merge both update sets.



Hope that helps.



Thanks,


Mandar


jason_petty
Tera Expert

This works like a charm. Followed below steps:

1. System Definition -> Scripts - Background

2. Add and run below code after replacing table that contains the record and sys Id.

//Query for the record
var rec = new GlideRecord('sys_number');
rec.get('973c8e8a9d022000da615b13b3a22f32');
//Push the record into the current update set  
var um = new GlideUpdateManager2();
um.saveRecord(rec);

yamtimar
Tera Contributor

Thank you this script is worked for me to add any record to my update set

thank you so much