From bd0473e405da29259c177ff9f820a8cf77f68bcc Mon Sep 17 00:00:00 2001 From: Shakeel Shaik <72960980+am-shakeel@users.noreply.github.com> Date: Sat, 4 Oct 2025 14:49:26 +0530 Subject: [PATCH] Revert "Revert to previous working version of workflow (#1768)" This reverts commit 6f48b0b0bd014c1c339b16ddd0d52d55ad6a2449. --- .../readme.md | 4 ---- .../script.js | 15 --------------- 2 files changed, 19 deletions(-) delete mode 100644 Background Scripts/Revert to previous working version of workflow/readme.md delete mode 100644 Background Scripts/Revert to previous working version of workflow/script.js diff --git a/Background Scripts/Revert to previous working version of workflow/readme.md b/Background Scripts/Revert to previous working version of workflow/readme.md deleted file mode 100644 index a535acc1b0..0000000000 --- a/Background Scripts/Revert to previous working version of workflow/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -How often you come across cases where any version update to workflow breaks some other element of the existing workflow in PRD. Consider a case where more than one developer works on workflow and the updates are not in sync. When pushed to PRD breaks the workflow and as the issue is in PRD all you need to do is a break-fix at the soonest. -The idea is to return to a stable, known version of the workflow to ensure continuity and productivity, while investigating or fixing the problems in the newer version and thus reverting to previous working version of workflow is the only resort. - -Use this as a background script/fix script and execute by merely changing the sys_id of workflows from 'wf_workflow_version' table. diff --git a/Background Scripts/Revert to previous working version of workflow/script.js b/Background Scripts/Revert to previous working version of workflow/script.js deleted file mode 100644 index 7879dcfd55..0000000000 --- a/Background Scripts/Revert to previous working version of workflow/script.js +++ /dev/null @@ -1,15 +0,0 @@ -var updatevftoprevious = new GlideRecord('wf_workflow_version'); - -if (updatevftoprevious.get('4f215adf1b533d54bc97dce0b24bcb31')) //pass sys_id of current workflow version here -{ - updatevftoprevious.published = false; //sets the published status to false - updatevftoprevious.update(); -} - - -var updatevftopreviousvf2 = new GlideRecord('wf_workflow_version'); -if (updatevftopreviousvf2.get('2cb9a6418713b5140b0f0d490cbb3512')) //pass sys_id of workflow version that needs to be reverted to -{ - updatevftopreviousvf2.published = true;//sets the published status to false - updatevftopreviousvf2.update(); -}