Can we revert workflow to a previous version?

Tadz
Tera Guru
Tera Guru

Hi can we revert workflow to a previous version?

What would be best practice for having a back-up for workflow.

Thanks,

Tadz

1 ACCEPTED SOLUTION

For deactivating the current.


var getInc = new GlideRecord('wf_workflow_version');


if(getInc.get('3b95753ad0d60200085a28e2b5794e1e')) //change


{


getInc.published=false;


getInc.update();


}



To publish old one



var getInc = new GlideRecord('wf_workflow_version');


if(getInc.get('3b95753ad0d60200085a28e2b5794e1e')) //change


{


getInc.published=true;


getInc.update();


}


View solution in original post

17 REPLIES 17

leslietevlin
Tera Contributor

This is a LIFEsaver!  Thanks so much for packaging this up and delivering it to us to use and make our lives so much easier!!!!

 

Manirul1
Tera Contributor

The Easiest way is:

  1. Go to the workflow record in the wf_workflow table
  2. Right click in the form header, go to 'Show File Properties'
  3. Add the 'versions' related list to the form if it's not already there
  4. Right click the version you want to revert to, click 'Revert to this Version'
  5. Click 'Ok' on the dialog, and the workflow is reverted

 

Thanks

Manirul

Exactly what I needed - thanks!