diff --git a/Specialized Areas/Update Incident Record from Record Producer/README.md b/Specialized Areas/Update Incident Record from Record Producer/README.md new file mode 100644 index 0000000000..b29b5dcbe0 --- /dev/null +++ b/Specialized Areas/Update Incident Record from Record Producer/README.md @@ -0,0 +1 @@ +This code_snippet.js script updates Incident Record from Record Producer. diff --git a/Specialized Areas/Update Incident Record from Record Producer/code_snippet.js b/Specialized Areas/Update Incident Record from Record Producer/code_snippet.js new file mode 100644 index 0000000000..b7c08d3db0 --- /dev/null +++ b/Specialized Areas/Update Incident Record from Record Producer/code_snippet.js @@ -0,0 +1,8 @@ +// This script script updates Incident Record from Record Producer +// Create a Record Producer and add script under producer script + +new global.GlideQuery('incident').where('sys_id', producer.incident_number).update({ + short_description: producer.short_description +}); +gs.addInfoMessage('Record Updated Successfully'); +current.setAbortAction(true);