Skip to content

Commit 6e7763b

Browse files
authored
Update set_update_sets_to_complete.js
updated the query to not include the default update sets
1 parent 86ec890 commit 6e7763b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//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.
22

33
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");
4+
gr.addEncodedQuery("state=in progress^nameNOT LIKEdefault");
55

66
gr.setValue("state","complete"); //marking them to complete and updating multiple records using updateMultiple()
77
gr.updateMultiple();

0 commit comments

Comments
 (0)