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 86ec890 commit 6e7763bCopy full SHA for 6e7763b
Background Scripts/Set update sets to Complete/set_update_sets_to_complete.js
@@ -1,7 +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");
+gr.addEncodedQuery("state=in progress^nameNOT LIKEdefault");
5
6
gr.setValue("state","complete"); //marking them to complete and updating multiple records using updateMultiple()
7
gr.updateMultiple();
0 commit comments