We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c8338 commit d5abee3Copy full SHA for d5abee3
1 file changed
Server-Side Components/Background Scripts/Change Approver/Change approver for any record
@@ -0,0 +1,7 @@
1
+var rec = new GlidRecord("sysapproval_approver");
2
+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.
3
+rec.query();
4
+if(rec.next()){
5
+rec.approver = "Provide the sys_id of the user"; // Provide the sys_id of the user for whom you want to trigger an approval
6
+rec.update(); // This will update the approver record.
7
+}
0 commit comments