CSM Configurable Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 04:05 AM
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.
On click of this link new tab is opening withing workspace, but says No record found.
Below is the expected behavior: we want to redirect to "com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=xxxxxx" page.
Thank you,
Shraddha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 09:04 PM
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
});
}