- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 08:52 AM
Hello dear community I need help:
I need in the workspace to be able to display the workflow (just like in a request within the Service Now platform).
Ej: We select this on the platform:
To display the workflow:
In order to do this in the workspace I did the following:
I selected: Workspace form button and Format for configurable workspace
The button appears in the workspace, but nothing happens when you click it:
I need to select the "Show workflow" button to display the workflow. Can someone help me to solve this?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 12:46 PM
hello
try putting this script in workspace client script
function onClick(g_form) {
// Show the workflow context in a new window
var url = new GlideURL('/context_workflow.do');
url.addParam('sysparm_stack', 'no');
url.addParam('sysparm_table', 'sc_req_item');
url.addParam('sysparm_document', g_form.getUniqueValue());
g_navigation.open(url.getURL(), "_blank");
}
Hope this helps
please mark my answer correct if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 11:58 AM
hello
open(url.geturl(),"_blank");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 01:08 PM
alert(url.getURL());
lets check if its going inside the script once you click on the button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 02:07 PM
function onClick(g_form) {
// Show the workflow context in a new window
var url = new GlideURL('/context_workflow.do');
url.addParam('sysparm_stack', 'no');
url.addParam('sysparm_table', 'sc_req_item');
url.addParam('sysparm_document', g_form.getUniqueValue());
alert(url.getURL());
open(url.getURL(), "_blank");
}