- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 11:48 AM
Hi guys, I need your help! I'm trying to redirect users with an Workspace UI Action, it's working in Native UI but not in Agent Workspace.
Could someone help me with it, pleeease? Here is my code:
I copied it from an native UIAction and just fit it for my business
#clientscript #agentworkspace #workspace #coding #scripting #popup
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:48 PM
The "Continue problem" UI Action of the OOTB Service Operations Workspace (/nav_to.do?uri=sys_ui_action.do?sys_id=97d3a3b1eb900110e69783402a52286c):
open(...) is basically equivalent to g_navigation.openPopup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:21 PM
Hi @Boaz Benicio , Did you try use g_aw.openRecord ? If I understood the link you are trying to open is a record. You can do this using the method mentioned. Take a look here: https://developer.servicenow.com/dev.do#!/reference/api/rome/client/GlideAgentWorkspaceAPI It's not that complex. Hope it helps you.
Example, Add this (replace table name and id of the record you want to open) script to open record in a subtab:
g_aw.openRecord('table_name', '62826bf03710200044e0bfc8bcbe5df1');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:48 PM
The "Continue problem" UI Action of the OOTB Service Operations Workspace (/nav_to.do?uri=sys_ui_action.do?sys_id=97d3a3b1eb900110e69783402a52286c):
open(...) is basically equivalent to g_navigation.openPopup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:53 PM
Yes. The example I gave first opens inside workspace portal in a subtab. Your example OOTB open a new URL. If it covers your needs. Great! Let me know if it helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 08:36 AM
You're welcome 🙂
Would you mind selecting the answer as "solution" to mark the thread as "answered"?