From d5abee31233ff316ee5d4eaa489f60d1fb0db1cb Mon Sep 17 00:00:00 2001 From: Abhishek Thakur <146176327+at8807602@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:53:45 +0530 Subject: [PATCH] Change approver for any record I have seen many times; approvals go to another person. This script can help to change the approvers quickly. --- .../Change Approver/Change approver for any record | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Change Approver/Change approver for any record diff --git a/Server-Side Components/Background Scripts/Change Approver/Change approver for any record b/Server-Side Components/Background Scripts/Change Approver/Change approver for any record new file mode 100644 index 0000000000..06320dd6a4 --- /dev/null +++ b/Server-Side Components/Background Scripts/Change Approver/Change approver for any record @@ -0,0 +1,7 @@ +var rec = new GlidRecord("sysapproval_approver"); +rec.addQuery("sys_id", "Provide the sys_Id of the record"); // Provide the sys_id of the record in which you want to change the approver. +rec.query(); +if(rec.next()){ +rec.approver = "Provide the sys_id of the user"; // Provide the sys_id of the user for whom you want to trigger an approval +rec.update(); // This will update the approver record. +}