Now Experience Workspace UI Action - Open new Top level tab\Record and close existing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 05:51 AM
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;
- Inserts record
- Runs a glide record query
- Redirects to that Glide Record in a new top level tab
- 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.
- Labels:
-
Agent Workspace
- 939 Views