
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 08:31 PM
Hi can we revert workflow to a previous version?
What would be best practice for having a back-up for workflow.
Thanks,
Tadz
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 03:05 AM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2018 08:15 AM
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!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2021 12:41 AM
The Easiest way is:
- Go to the workflow record in the wf_workflow table
- Right click in the form header, go to 'Show File Properties'
- Add the 'versions' related list to the form if it's not already there
- Right click the version you want to revert to, click 'Revert to this Version'
- Click 'Ok' on the dialog, and the workflow is reverted
Thanks
Manirul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2021 09:27 AM
Exactly what I needed - thanks!