From b30b4a393ce066682a3f8ad2ccfef3208eb2a330 Mon Sep 17 00:00:00 2001 From: HONG QI XING Date: Tue, 21 Oct 2025 00:00:16 +0800 Subject: [PATCH 1/2] Create changeCommitUpdateSet.js --- .../changeCommitUpdateSet.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/changeCommitUpdateSet.js diff --git a/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/changeCommitUpdateSet.js b/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/changeCommitUpdateSet.js new file mode 100644 index 0000000000..2c1920ad54 --- /dev/null +++ b/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/changeCommitUpdateSet.js @@ -0,0 +1,6 @@ +// 1. Add record to update set, Query for the record - get sys id +var rec = new GlideRecord('x_sms_request'); +rec.get('4012cbc3830d1210887ced70deaad389'); +// 2. Push the record into the current update set +var um = new GlideUpdateManager2(); +um.saveRecord(rec); From 91d3858ae3a95dcd90f3d19d706c5197a5968af6 Mon Sep 17 00:00:00 2001 From: HONG QI XING Date: Tue, 21 Oct 2025 00:10:56 +0800 Subject: [PATCH 2/2] Create README.md --- .../GlideRecord/Force tracked change to Update Set/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/README.md diff --git a/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/README.md b/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/README.md new file mode 100644 index 0000000000..cd10f4b5d4 --- /dev/null +++ b/Core ServiceNow APIs/GlideRecord/Force tracked change to Update Set/README.md @@ -0,0 +1,2 @@ +Add untracked record to update set as tracked change +Ensure that the update set is in tracking / active mode, and application scope matches the intended update while running the script