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 d3cde61 commit f5e449eCopy full SHA for f5e449e
Core ServiceNow APIs/GlideRecord/Query Active Incidents/snippet_file.js
@@ -0,0 +1,16 @@
1
+
2
3
+// GlideRecord Example - Query Active Incidents
4
+(function() {
5
+ var gr = new GlideRecord('incident');
6
+ gr.addQuery('active', true);
7
+ gr.orderByDesc('sys_created_on');
8
+ gr.setLimit(10);
9
+ gr.query();
10
11
+ while (gr.next()) {
12
+ gs.info('Number: ' + gr.getValue('number') +
13
+ ', Short Description: ' + gr.getValue('short_description') +
14
+ ', Assigned To: ' + gr.getDisplayValue('assigned_to'));
15
+ }
16
+})();
0 commit comments