โ† ServiceNow learning path
ServiceNow ยท Module 8 of 10

Scripting with JavaScript

When and how ServiceNow is coded.

๐Ÿ“– Key ideas

  1. ServiceNow scripts are written in JavaScript.
  2. Client scripts run in the browser on forms, for example to show or hide a field.
  3. Business rules run on the server when records are inserted, updated or queried.
  4. GlideRecord is the server API to query and update tables.
  5. 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