Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.
}
Loading