Skip to content

Commit befac37

Browse files
script.js
1 parent a1792cf commit befac37

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var updatevftoprevious = new GlideRecord('wf_workflow_version');
2+
3+
if (updatevftoprevious.get('4f215adf1b533d54bc97dce0b24bcb31')) //pass sys_id of current workflow version here
4+
{
5+
updatevftoprevious.published = false; //sets the published status to false
6+
updatevftoprevious.update();
7+
}
8+
9+
10+
var updatevftopreviousvf2 = new GlideRecord('wf_workflow_version');
11+
if (updatevftopreviousvf2.get('2cb9a6418713b5140b0f0d490cbb3512')) //pass sys_id of workflow version that needs to be reverted to
12+
{
13+
updatevftopreviousvf2.published = true;//sets the published status to false
14+
updatevftopreviousvf2.update();
15+
}

0 commit comments

Comments
 (0)