Skip to content

Commit 5b867bf

Browse files
Hactober fest 2025 (request) (#2636)
* code_snippet.js * README.md * Add files via upload * code_snippet.js * README.md * README.md
1 parent f6f83df commit 5b867bf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This code_snippet.js script enables seamless Incident record updates directly from a Record Producer.
2+
Within the Record Producer, you can define specific record fields and specify which fields should be updated — all within ServiceNow, without any interruptions.
3+
4+
Using this script, end users can easily update an existing Incident’s Short Description or modify an Onboarding Form — without requiring any Service Desk involvement or navigating to the record via Workspace or the Next Experience UI.
5+
6+
This use case became a key highlight in one of our projects, showcasing how automation can enhance user experience and efficiency within ServiceNow.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This script script updates Incident Record from Record Producer
2+
// Create a Record Producer and add script under producer script
3+
4+
new global.GlideQuery('incident').where('sys_id', producer.incident_number).update({
5+
short_description: producer.short_description
6+
});
7+
gs.addInfoMessage('Record Updated Successfully');
8+
current.setAbortAction(true);

0 commit comments

Comments
 (0)