Ankur Bawiskar
Tera Patron
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-07-2025 07:05 PM
Out of the box Flow context UI action is available in native view but not in Service Operations Workspace.
If you wish to show it in workspace then we need to modify the OOB UI action.
Ensure you set both the checkboxes as true in the UI action and update the script as this.
Workspace Form button and Format for Configurable Workspace
Script
function onClick(g_form) {
var gr = new GlideRecord("sys_flow_context");
gr.addQuery("source_record", g_form.getUniqueValue());
gr.query(checkRecord);
function checkRecord(gr) {
if (gr.next()) {
var url = '/now/workflow-studio/builder?tableName=sys_flow_context&builderId=flow-execution&sysId=' + gr.sys_id;
open(url);
}
}
}
- 364 Views