Skip to content

Commit af9f9c4

Browse files
incidentDeleteUtils.js
1 parent 06c5594 commit af9f9c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var IncidentDeleteUtils = Class.create();
2+
IncidentDeleteUtils.prototype = {
3+
initialize: function() {},
4+
5+
deleteIncident: function(sys_id){
6+
var gr = new GlideRecord('incident');
7+
if(gr.get(sys_id)){
8+
gr.deleteRecord();
9+
return "Incident Deleted Successfully";
10+
}
11+
return "Incident Not Found";
12+
},
13+
14+
type: 'IncidentDeleteUtils'
15+
};

0 commit comments

Comments
 (0)