Open a new record as a sub-tab in Workspace when clicking a UI Action

M Shivani
Tera Guru

Method used : openRecord(String table, String sysId, Object params) 

 

openRecord() - It is a client-side GlideAgentWorkspace API used to open a new record in a sub-tab within Workspace.

 

Implementation :

 

            Use the following code within a Workspace Client Script in a UI Action:

            g_aw.openRecord('name_of_the_table', '-1'); // -1 is used to open a new record 

             

            MShivani_0-1741179054817.png 

 

 When the action is triggered, a new record form opens in a sub-tab of Workspace :

 

            MShivani_1-1741179159860.png 

 

Reference : GlideAgentWorkspaceAPI#gaw-openRecord  

 

Thank you!

 

 

 

0 REPLIES 0