We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1792cf commit befac37Copy full SHA for befac37
Background Scripts/Revert to previous working version of workflow /script.js
@@ -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