Capturing record produce in update set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 06:03 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 09:21 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 10:32 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 11:01 PM
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