Opening new Agent Workspace Tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2021 07:32 AM
Hi,
we have created a custom page mimicking Service Catalog, and currently are opening it from UI Action 'Create Request' via the "openUrl(...) + top.window.open(...)" function in a new browser tab.
We would like it to behave on the Agent Workspace same way, as the OOTB one did, so when the user selects 'Create Request' - the page would open on a new Tab on AW, on the same row as the original ticket.
Is there a way to customize the UI action to open a new page as a new Tab in Agent Workspace, rather than in a new window? Thanks.
- Labels:
-
Agent Workspace
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 10:22 AM
HI
Until now, I wasn't even aware that one can open service portal pages in the Agent Workspace. Learned something again!
I inspected the mentioned "Create Request" UI Action and looking at the method invokation:
g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
I would entering the name of your custom page give a try.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2021 11:26 PM
Hi,
unfortunately, using that returns the 'Invalid table' error.
Regards
P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2021 11:46 PM
Hi
what values did you fill into the params object?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2021 12:14 AM
Hi,
I kept the original params: for table and Sys_id of record. The full code is here:
var params ={};
params.sysparm_parent_table = "incident";
params.sysparm_parent_sys_id = g_form.getUniqueValue();
g_service_catalog.openCatalogItem('aw_sc_category', '-1', params); //custom page
Regards
P