logo

NJP

Workflow restart of workflow refresh

Import · Jan 24, 2019 · article

Hello, FYI

These lines of code may be helpful on workflow restart or refresh, after submission on RITM later you did any modifications on RITM variable tab.

var wf = new Workflow(); wf.restartWorkflow(current); wf.runFlows(current, "update"); // the update is just going to look for your changes and will gs.addInfoMessage('Change approvals and workflow reset for ' + current.number + '.');

gs.addInfoMessage("tetsing rollback");

View original source

https://www.servicenow.com/community/developer-articles/workflow-restart-of-workflow-refresh/ta-p/2330244