- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 05:04 AM
I just noticed that I checked out a workflow 3 months ago. The problem at that time had been solved by changing a Business Rule. The workflow wasn't at fault at that time. I don't remember what changes I have done to the workflow, so I don't want to publish it, but i don't want the published version to exist either. How do i close the workflow again, without having to publish it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 06:06 AM
With all your help combined I figured it out. If you want to delete a checked out published version you:
- Do NOT need to be the person that checked out the version
- Do NOT have to publish it first
- Do need a workflow role (creator or publisher). Admin alone isn't enough as the ACL doesn't have admin override.
- Do need to close all active workflow contexts
When this is all done, you can delete the workflow version just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 06:18 AM
You can get that workflow version deleted by running the below script in the script background. Please make sure you copy the right sys_id of checked out workflow in the highlighted portion.
var wf= new GlideRecord('wf_workflow_version')
wf.addQuery('sys_id', 'sys_id_your checked out workflow');
wf.query();
while (wf.next()){
gs.print('Name:'+ wf.name);
wf.deleteRecord();
gs.print('deleted:'+ wf.name);
wf.update();}
Regards,
Gowthaman Balu.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2020 09:41 AM