CSM Configurable Workspace

shraddha_0320
Tera Contributor

Hello Folks,

We have a requirement where we are trying to open catalog item view in CSM/FSM Configurable Workspace. On Ticket we have more options where we have enable few related links. On click of that we want to open catalog item in new tab to submit the request within workspace

1. We have "Create Finance Tax Task" link which works as related link in console.

shraddha_0320_1-1709812612600.png

On click of this link new tab is opening withing workspace, but says No record found.

 

shraddha_0320_0-1709812584951.png

Below is the expected behavior: we want to redirect to "com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=xxxxxx" page.

shraddha_0320_2-1709812868376.png

 

Thank you,
Shraddha

1 REPLY 1

Shruti
Mega Sage
Mega Sage

Hi,

Try below code in the Workspace client script section of the UI action

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 = "incident";  //Replace table name
        params.sysparm_parent_sys_id = g_form.getUniqueValue();
        g_service_catalog.openCatalogItem('sc_cat_item','3f1dd0320a0a0b99000a53f7604a2ef9', '-1', params); //Replace sys_id with the sys_id of the catalog item
    });
}