How to capture the configs that we do to setup the service catalog's catalog homepage in Updateset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 06:52 AM - edited 09-07-2023 06:54 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 03:16 AM
can anyone let me know on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 03:49 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 07:30 AM
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