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 06c5594 commit af9f9c4Copy full SHA for af9f9c4
Server-Side Components/Script Includes/Delete Swipe Function/incidentDeleteUtils.js
@@ -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