From c65b853bd954f86e5160294346990da8bf08d700 Mon Sep 17 00:00:00 2001 From: Thrizvi <145013431+Thrizvi@users.noreply.github.com> Date: Fri, 3 Oct 2025 12:46:15 +0530 Subject: [PATCH] Create Updation in Incident record Updating short description in incident table --- .../Background Scripts/Updation in Incident record | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Updation in Incident record diff --git a/Server-Side Components/Background Scripts/Updation in Incident record b/Server-Side Components/Background Scripts/Updation in Incident record new file mode 100644 index 0000000000..59eb04ae8f --- /dev/null +++ b/Server-Side Components/Background Scripts/Updation in Incident record @@ -0,0 +1,9 @@ +var incidentGR = new GlideRecord('incident'); + +// Replace 'INC0010001' with the actual incident number or use a query to find it +if (incidentGR.get('number', 'INC0010001')) { + incidentGR.short_description = 'Updated short description for Priority 1 incident'; + incidentGR.update(); +} else { + gs.info('Incident not found'); +}