Skip to content

Commit c65b853

Browse files
authored
Create Updation in Incident record
Updating short description in incident table
1 parent abbe375 commit c65b853

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var incidentGR = new GlideRecord('incident');
2+
3+
// Replace 'INC0010001' with the actual incident number or use a query to find it
4+
if (incidentGR.get('number', 'INC0010001')) {
5+
incidentGR.short_description = 'Updated short description for Priority 1 incident';
6+
incidentGR.update();
7+
} else {
8+
gs.info('Incident not found');
9+
}

0 commit comments

Comments
 (0)