Skip to content

Commit 42d88d9

Browse files
authored
Merge pull request #7 from Thrizvi/Thrizvi-patch-7
Create DeleteIncident.js
2 parents cef6b09 + 6a809de commit 42d88d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var gr = new GlideRecord('incident');
2+
gr.addQuery('state', '7');
3+
gr.query();
4+
var count = 0;
5+
while (gr.next()) {
6+
gr.deleteRecord();
7+
count++;
8+
}

0 commit comments

Comments
 (0)