Workflow Undefined - Missing Global Identifier


Description

Error " Workflow Undefined - Missing Global Identifier" all over Application Scope.

Cause

The condition '(new Workflow().hasWorkflow(current))' on 'Show workflow' UI Action defined on <scope_table> table is causing this error.

Resolution

1.On the show workflow UI Action if you remove this part of the condition '&& (new Workflow().hasWorkflow(current))' the error will no longer appear.
2.Alternatively, you can also add global in front of your Workflow instantiation in this condition like '&& (new global.Workflow().hasWorkflow(current))'

Here is a link to this UI Action:
https://<instancename>.service-now.com/sys_ui_action.do?sys_id=5780f476db1508d04f73498039961939