Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Open a new record in main tab in Service Operations Workspace upon clicking on a UI Action

Apurva Jogal
Kilo Sage

Hi,

I am trying to open a new record in the Service Operations Workspace. 

I have created a declarative action - Create Alert which is implemented as a client script. 
I have written this code in the Client Script 

function onClick() {

    var con = confirm("Test message");

   tableName = "incident";
    sysId = "a83820b58f723300e7e16c7827bdeed2";
    g_aw.openRecord(tableName, sysId);

}


Above code open the Record. 
But I want the record to be opened in the tab next to the record from where the button is clicked.
 e.g - from below screenshot INC0008111 should be next to INC0009003 instead of next to the Details tab from INC0009003

ApurvaJogal_0-1762367052662.png

Does anyone know how to achieve this?

Thank you!

 

0 REPLIES 0