- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-04-2019 11:16 AM
Here is how you can make an update set as your current update set.
Example:
var gsus = new GlideRecord("sys_update_set");
gsus.initialize();
gsus.application ='global';
gsus.name = 'Myupdateset_v1';
gsus.description = 'Make it as current';
var upsetsysid = gsus.insert();
var gus = new GlideUpdateSet();
gus.set(upsetsysid );
Note: sometimes the update set will not show immediately on the top bar [view current update set]. Just refresh the page and it will show. Also, you really don't need to worry about whether your updates are storing in the current update set. It will store in the newly created update set only even though it is showing the wrong update set at the top bar.
- 3,138 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Narsing,
I successfully have been using this command for a short time.
but I don't see any documentation about it.
Do you have any idea ?
Thanks.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
You can observe that in UpdateSetAjax Class on "changeUpdateSet" Method
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
See 'Copy Update Set' Utility on Share.