Categories:

Revert Workflow to Old Version by Script

We can Revert back our workflow to OLD Version. Below code needs to use in background script.

var getInc = new GlideRecord('wf_workflow_version');
if (getInc.get('3b95753ad0d60200085a28e2b5794e1e')) //Current Version
{
	getInc.published = false;
	getInc.update();
}
//To publish old one
var getInc = new GlideRecord('wf_workflow_version');
if (getInc.get('3b95753ad0d60200085a28e2b5794e1e')) //Old Version
{
	getInc.published = true;
	getInc.update();
}

3 Responses

  1. Hey there just wanted to give you a brief heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

  2. obviously like your web site however you need to test the spelling on quite a few of your posts. Many of them are rife with spelling issues and I find it very troublesome to tell the reality nevertheless I’ll certainly come back again.

Leave a Reply

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