We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb45c6f commit f0c9c4fCopy full SHA for f0c9c4f
Background Scripts/Set update sets to Complete/set_update_sets_to_complete.js
@@ -0,0 +1,7 @@
1
+//note : this script is going to mark all the update sets that are in progress to complete so make sure the query meets your requirements.
2
+
3
+var gr = new GlideRecord("sys_update_set"); //querying the update sets table to check update sets which are in progress
4
+gr.addQuery("state","in progress");
5
6
+gr.setValue("state","complete"); //marking them to complete and updating multiple records using updateMultiple()
7
+gr.updateMultiple();
0 commit comments