//Create a new Incident record and populate the fields with the values below
var gr = new GlideRecord('incident');
gr.initialize();
gr.short_description = 'Network problem';
gr.category = 'software';
gr.caller_id.setDisplayValue('Joe Employee');
gr.insert();
Reference: https://www.servicenowguru.com/scripting/gliderecord-query-cheat-sheet/
Subscribe to:
Post Comments (Atom)
Discovery troubleshooting | Error messages
Discovery troubleshooting | Error messages - Support and Troubleshooting (servicenow.com) Description Learn how to resolve common Discover...
-
Steps to Debug Inbound REST API Calls in Service Now: 1. Make sure the property “ glide.rest.debug ” is set to true under sys_prop...
-
Error Log - [ecc_agent_status] table record missing for MIDSERVER "Midserver name" : no thrown error in Logs. Cause: ( Clon...
-
Get the instance name from BusinessRule in ServiceNow to avoid Hardcoding. Create a Global variable and assign the instance to it and he...
No comments:
Post a Comment