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  

Opening new Agent Workspace Tab

PavelP
Mega Sage

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.

find_real_file.png

 

 

8 REPLIES 8

HI @PavelP ,

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

Hi,

unfortunately, using that returns the 'Invalid table' error.

Regards

P

Hi

what values did you fill into the params object?

Maik

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