Workspace UI Action - Redirect Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 10:13 AM - edited 04-15-2024 01:44 PM
Hi,
I have been unable to find an answer to this specific question but is it possible to have a UI Action redirect to a specific catalog item? Outside of Workspaces, it is relatively straight forward to have the agent/user redirected to a specific catalog item, such as below:
gs.setRedirect('com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=a12345678fakesysid');
In Workspaces, I see the out of the box "Create Request" UI Action performs the following to redirect to the overall Service Catalog:
//Update saves interactions before going to the catalog homepage
current.update();
var url;
var activeCatalogsCount = sn_sc.Catalog.getCatalogCount();
if (activeCatalogsCount === 1) {
url = "catalog_home.do?sysparm_view=catalog_default&sysparm_parent_table=" + current.sys_class_name + "&sysparm_parent_sys_id=" + current.sys_id;
}
else {
url = "catalogs_home.do?sysparm_view=catalogs_default&sysparm_parent_table=" + current.sys_class_name + "&sysparm_parent_sys_id=" + current.sys_id;
}
action.setRedirectURL(url);
Does anyone know how to set up a Redirect URL to direct the agent/user to a specific catalog item? As of right now, none of my attempts have worked, the form's page just reloads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 02:04 PM
maybe you could try to set it up like
now/sow/record/sc_cat_item/catitemsysid

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 06:50 AM
Worked for me, thanks a lot!