"Force into Update Set" button not sowing up

Karthikpasikant
Tera Guru

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. find_real_file.png

//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

1 ACCEPTED SOLUTION

Karthikpasikant
Tera Guru

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. 

View solution in original post

5 REPLIES 5

Aman Kumar S
Kilo Patron

Hi @Karthik

So the condition check is admin, so it is not even showing as form link for admins?

Best Regards
Aman Kumar

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

Can you check if you have any other UI action with same action name ie force_update?

 

Best Regards
Aman Kumar

Hi Aman,

There are no other UI actions with the same action name. Below is the screenshot.

find_real_file.png

Thanks,

Karthik