
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 06:31 AM
Hello Everybody,
I want to know if there's a way to force changes to an Update Set built in Scoped applications.
I got this code to use in Background Scprit
//Query for the record
var rec = new GlideRecord('sys_ui_section');
rec.get('116b367b6feecf406bda17164b3ee42c');
//Push the record into the current update set
var um = new GlideUpdateManager2();
um.saveRecord(rec);
It's nice but only works for Update Sets in Global. The main issue is the method GlideUpdateManager2().
Can you guys help me out here? Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Data Certification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 06:56 AM
Hi,
Tested the same as below.
1. Created Update set in Human Resources : Core Scoped application
2. Ran a background script as below.
var rec = new GlideRecord('sys_ui_section');
rec.get('6fb3e037b73333001d69c2daee11a907');
//Push the record into the current update set
var um = new GlideUpdateManager2();
um.saveRecord(rec);
3. It got forcefully captured in update set as below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:02 AM
Any Update on this, It got capture in Global Scope, in Scoped update set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 01:37 AM
You are both correct. However, it still does the job for me.
What I noticed is that when you add a record to an update set within an App Scope (in a Scoped update set), the Scoped update set gets automatically copied/duplicated to the Global Scope (as you can see in the image):
As weird as it may look this still will work when you migrate the Batch Update Set or the individual Global update set to another instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 11:25 AM
@Pankaj Sharma1 did you got any solution for this? pls help me as well