Skip to content

Commit 3e783cd

Browse files
authored
Move customer updates (ServiceNowDevProgram#738)
* Created a background script to move customer updates. * Description for "Move Customer Updates" background script.
1 parent 94c1b90 commit 3e783cd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//A background script to move customer updates from source update set to target update set within the same application scope.
2+
function moveCustomerUpdates(sourceUpdateSetSysId, targetUpdateSetSysId) {
3+
var customerUpdateGR = new GlideRecord('sys_update_xml');
4+
customerUpdateGR.addQuery('update_set', sourceUpdateSetSysId);
5+
customerUpdateGR.setValue('update_set', targetUpdateSetSysId);
6+
customerUpdateGR.updateMultiple();
7+
}
8+
9+
moveCustomerUpdates('sourceUpdateSetSysId', 'targetUpdateSetSysId');
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Move Customer Updates
2+
I've developed a script to facilitate the transfer of customer updates between two update sets within the same application scope. The script needs to run at the global scope for execution.

0 commit comments

Comments
 (0)