Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

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.

4 REPLIES 4

yashkamde
Mega Sage

Hello @GabeF ,

 

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

GabeF
Tera Contributor

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.

Priyanjalip,

Thanks for responding, I tried this yesterday, it still did the same thing.