Skip to content

Commit f0c9c4f

Browse files
authored
Create set_update_sets_to_complete.js
Creating a script to update all the update_sets that are inprogress to complete
1 parent fb45c6f commit f0c9c4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)