- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 01:36 PM
Hi everyone,
We have a UI action "Force into Update Set" to force changes in to update set since 2016. This was showing up on all the forms (user table, scheduled jobs and so on) previously but suddenly it is not showing up now.
I have checked for any changes in the versions but nothing has changes since 2016. posting the script below.
//Commit any changes to the record
current.update();
//Check to make sure the table isn't synchronized already
var tbl = current.getTableName();
if(tbl.startsWith('wf_') || tbl.startsWith('sys_ui_') || tbl == 'sys_choice' || (current.getED().hasAttribute('update_synch') && current.getED().getAttribute('update_synch') == 'true') || (current.getED().hasAttribute('update_synch_custom') && current.getED().getAttribute('update_synch_custom') == 'true')){
gs.addErrorMessage('Updates are already being recorded for this table.');
action.setRedirectURL(current);
}
else{
//Push the update into the current update set
var um = new GlideUpdateManager2();
um.saveRecord(current);
//Query for the current update set to display info message
var setID = gs.getPreference('sys_update_set');
var us = new GlideRecord('sys_update_set');
us.get(setID);
//Display info message and reload the form
gs.addInfoMessage('Record included in <a href="sys_update_set.do?sys_id=' + setID + '">' + us.name + '</a> update set.');
action.setRedirectURL(current);
}
Please suggest if anything needs to be changed in order for this to be working again.
Thanks in advance.
Karthik
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 01:45 PM
I actually found the issue. There was a UI Action visibility added to the "Force in to Update Set" related link. After removing the UI Action visibility the link started working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 03:41 PM
Hi @Karthik
So the condition check is admin, so it is not even showing as form link for admins?
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 10:25 AM
Hi Aman,
That's correct. The condition is admin and I have checked with other admins also and they have also reported that it isn't showing up.
Thanks,
Karthik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 10:28 AM
Can you check if you have any other UI action with same action name ie force_update?
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 10:41 AM