How to add a record to an update set via script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 03:57 AM
Hi Everyone,
I want to know how do i add a record to an update set via script?
The update set is not necessarily my current update set.
Regards,
Kartikey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 04:00 AM
Hi @kartikey
please find the example at https://servicenowguru.com/system-definition/manual-update-set-inclusion/
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 04:05 AM
HI Maik,
like i mentioned, the update set is not necessarily my current update set .
regards,
Kartikey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 04:40 AM - edited ‎08-22-2023 04:41 AM
Hi @kartikey
you can specify the required update set via its Sys ID
var objUSM = new GlideUpdateManager2();
objUSM.loadUpdateSet(SYS_ID_OF_UPDATE_SET);
Maik