How to capture the configs that we do to setup the service catalog's catalog homepage in Updateset?

Snehal Madakatt
Mega Sage

Hi Developers,

 

Plz help on below:

How to capture the configurations that we do to setup the service catalog's catalog homepage in update set. I want to move the configured catalogs home page to further instance, but i found that its not getting captured in the update set. I mean the below:

SnehalMadakatt_0-1694094726210.png

 

3 REPLIES 3

Snehal Madakatt
Mega Sage

can anyone let me know on this?

Alex Tod1
Kilo Sage

Hi @Snehal Madakatt,

 You can force that records into an update set through a background script, I leave the code here, just replace the table name and sys_id of the record in the script below.

 

 //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);

Community Alums
Not applicable

Hi @Snehal Madakatt ,

 

Generally these are not capture in update set. We have to explicitly force it to the update set which isn't that simple, because one update can be dependent on another update. To explicitly add, we need to use the script. I would rather suggest you to add the catalog in the homepage manually in all the instances. I know it can be a repetitive work in all the instance but its just one time work.

 

Using the force adding to update set option may give you lots of error while moving the update set if all the updates and dependent updates are not captured properly.

 

To forcefully add the updates use GlideUpdateManager2 class.

 

Please mark the answer as correct and helpful, if I was able to answer your query. It will be helpful for others who are looking for similar questions.

 

Thank you,

Santosh Poudel