Skip to content

Commit 5f4bd9c

Browse files
authored
Create CreationOfIncident.js
Creation of Incident
1 parent be113f0 commit 5f4bd9c

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 incident = new GlideRecord('incident');
2+
incident.initialize();
3+
incident.short_description = 'Sample Incident Created via Script';
4+
incident.description = 'This incident was created using a GlideRecord script.';
5+
incident.caller_id = gs.getUserID(); // Sets the current user as the caller
6+
incident.priority = 3; // Medium priority
7+
incident.category = 'inquiry'; // Example category
8+
incident.insert();

0 commit comments

Comments
 (0)