We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be113f0 commit 5f4bd9cCopy full SHA for 5f4bd9c
Server-Side Components/Background Scripts/Incident creation/CreationOfIncident.js
@@ -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