We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c5cad commit cb45388Copy full SHA for cb45388
Specialized Areas/Fix scripts/updateMultipleRecords/update_multiple_records.js
@@ -0,0 +1,13 @@
1
+var GrQry = ""; //Query of the affected records.
2
+
3
+var grTableName = new GlideRecord('table_name');
4
+grTableName.addEncodedQuery(GrQry);
5
+grTableName.query();
6
+gs.addInfoMessage(grTableName.getRowCount())
7
8
+{
9
+grTableName.setValue("field", "value"); // Replace 'field' and 'value'
10
+grTableName.autoSysFields(false); // Prevents updating system fields like 'updated by'
11
+grTableName.setWorkflow(false); // Prevents triggering workflows
12
+grTableName.updateMultiple();
13
+}
0 commit comments