How can I get a UI action on agent workspace interaction to directly open a specific catalog item?

georgeprad
Mega Expert

On agent workspace I have a UI action to create request from an interaction. But this UI action opens the service catalog and then the agency has to select a form from the catalog. Instead of this I want the UI action to open a specific form i have created for this and i want the details captured in the interaction to be copied on to this item like the create incident UI action does. Can anyone help me with this? I tried the setRedirectUrl but this did not work. Not sure how to achieve this. 

1 ACCEPTED SOLUTION

T_Prashaanth
Mega Guru

Found the way for this ,it worked.Create a ui action with Workspace Client Script:

function onClick() {

var result = g_form.submit('sysverb_ws_save');

if (!result) { // failed form submission

return;

}

result.then(function() {

var params ={};

params.sysparm_parent_table = "interaction"; params.sysparm_parent_sys_id = g_form.getUniqueValue(); g_service_catalog.openCatalogItem('sc_cat_item', 'sys_id of the catalog item' ,'-1', params); });

}

Mark it correct if this is useful.

View solution in original post

13 REPLIES 13

T_Prashaanth
Mega Guru
Anybody fixed this issue??I'm also facing this

T_Prashaanth
Mega Guru
I'm Also facing this issue .Has anyone fixed this

georgeprad
Mega Expert

Unfortunately I haven't got any responses to this

T_Prashaanth
Mega Guru

Found the way for this ,it worked.Create a ui action with Workspace Client Script:

function onClick() {

var result = g_form.submit('sysverb_ws_save');

if (!result) { // failed form submission

return;

}

result.then(function() {

var params ={};

params.sysparm_parent_table = "interaction"; params.sysparm_parent_sys_id = g_form.getUniqueValue(); g_service_catalog.openCatalogItem('sc_cat_item', 'sys_id of the catalog item' ,'-1', params); });

}

Mark it correct if this is useful.