โ ServiceNow learning pathServiceNow ยท Module 8 of 10
Scripting with JavaScript
When and how ServiceNow is coded.
๐ Key ideas
- ServiceNow scripts are written in JavaScript.
- Client scripts run in the browser on forms, for example to show or hide a field.
- Business rules run on the server when records are inserted, updated or queried.
- GlideRecord is the server API to query and update tables.
- Script includes hold reusable server code.
๐ก Real-life example: Like rules in a library: the front desk checks your card as you walk in (client side), and the system updates records behind the counter (server side).
Client scriptBrowser-side form script
Business ruleServer script on record events
GlideRecordServer API to query tables
Script includeReusable server code