Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Delete Swipe Function

1. This Delete Swipe Function was present in Now Mobile - Mobile App Builder (MAB)
2. Create a Script Include name as incidentDeleteUtils
3. Make Accessible from - All application scopes
4. Create a deleteIncident function
5. Pass the sys_id as a input parameter
6. Glide Incident table for checking the record
7. Use if logic for cecking the record is present or not with provided sys_id
8. If found delete the Incident record then return as "Incident Deleted Successfully"
9. If not fount return as "Incident Not Found"
10. This functionality will work in the Now Mobile App & Mobile App Builder (MAB).
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var IncidentDeleteUtils = Class.create();
IncidentDeleteUtils.prototype = {
initialize: function() {},

deleteIncident: function(sys_id){
var gr = new GlideRecord('incident');
if(gr.get(sys_id)){
gr.deleteRecord();
return "Incident Deleted Successfully";
}
return "Incident Not Found";
},

type: 'IncidentDeleteUtils'
};
Loading