Save & Copy

GabeF
Tera Contributor

I created a Save & Copy button as a UI Action.

GabeF_0-1783352890339.png

It works but puts the new record as a sub Tab on the original record.

GabeF_1-1783353265684.png

If you click Details its the same information as the MyDay0008320.

2 REPLIES 2

yashkamde
Mega Sage

Hello @GabeF ,

 

is this UI Action running in Agent Workspace, or a custom Configurable Workspace?

priyanjalip
Mega Contributor

Try using action.openGlideRecord(current.getTableName(), newSysId); instead of action.setRedirectURL(url);. setRedirectURL() keeps it in the same workspace tab, so it opens as a sub-tab. openGlideRecord Should open the copied record as its own record/tab.