Add records to Specific Update Set NOT CURRENT UPDATE SET

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 08:14 PM
Hi,
Does anyone know how to push records to specific update set NOT current update set.
I was thinking to use this class GlideUpdateManager2 , however I can't find any documentation or even if this can be accomplish with this class.
Thanks,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 09:44 PM
GlideUpdateManager2 will push it to your current update set.
Why not set that update set as current for you and run the script and it will capture that in the required update set?
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
03-11-2025 10:32 PM
Hi Ankur,
I have a requirement to dynamically select the update set via script and push the record into the update set.
Here i cannot make it as my current update set and also all this should be happening in a non-interactive session.
Let me know if there is any way to push records to an update set in a non-interactive session without making it current update set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 10:40 PM
I tried to know which all methods are there in that GlideUpdateManager2 class, you can see if any of those functions work for you.
Unfortunately that API is at platform level and we won't know the functions within it and what they accept
var updateManager = new GlideUpdateManager2();
for (var i in updateManager)
gs.info(i);
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
03-12-2025 01:01 AM
Thank you for marking my response as helpful.
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