In ServiceNow we can cancel or restart workflow whenever we need by background or fix script.

Cancel Workflow

var workflow = new global.Workflow();
workflow.cancel(rec);

2. Restart Workflow:

var wflw = new Workflow();
wflw.startFlow(wflw.getWorkflowFromName('give the workflow name'), current, 'update');

Total Views: 1278

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *