Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Now Experience Workspace UI Action - Open new Top level tab\Record and close existing

Patrick Carder1
Tera Expert

Been trying to figure something out, and wondering if anyone had ideas/experience on this.

Within a Workspace\UX Application, I'm trying to create a UI Action that;

  1. Inserts record
  2. Runs a glide record query
  3. Redirects to that Glide Record in a new top level tab
  4. Closes the existing record\tab.

I have this fulling working in Next Experience and UI16 as action.setRedirectURL() is a thing. However the challenge is around doing it withing a Workspace\UX Application. Honestly, it doesn't matter what way Steps 3 and 4 happen as the outcome is effectively the same.

Currently, I can get it to open up a new sub tab by doing any of the following:

  • Server Side Script - action.openGlideRecord(gr);
  • Workspace Client Script - g_aw.openRecord(table, sys_id);

I can get a new top level Tab\Record to open using;

  • Workspace Client Script - var url = "https://instance.service-now.com/now/workspace/record/table/sys_id"; top.window.location = url;

I know you can close the tab\record using g_aw.closeRecord();, however that seems to not allow any actions afterwards.

This is where I'm stuck, and would appreciate any help. Thanks in advance.

0 REPLIES 0