Close all tabs ui action converation (button) in HR agent workspace

tpeleg
Tera Expert

Hello experts,

 

We wish to turn "close all tabs" (OOTB) to an ui action within the HR agent workspace.

 

tpeleg_1-1717321353453.png

We succeed to use this code:

 

function onClick(g_form) {
  g_form.save().then(function(){
    g_aw.closeRecord();
  });
}
 
but it's closing only the current tab. we wish to close all tabs and return to homepage immedatly from a custom button.
 
is it possible to track the close all tabs functionality and transfer it to workspace ui action code?
I couldn't even find the 3 dots OOTB code for close all tabs, it seems it's source is UI Builder, but didn't reach to it.
 
Thanks,
 
Tomer
0 REPLIES 0