Docs

TODO:FIXME

Jace Benson

Table of content
  1. Record Operations
  2. Dates & Time
  3. Data Types & Fields
  4. XML & Document Processing
  5. REST & Integration
  6. UI & Portal
  7. Platform & Plugins

This section collects the API reference pages for ServiceNow's server-side and client-side APIs. These aren't the official docs — they're the cheatsheet version. What each class does, what methods matter, and a code snippet so you don't have to dig through the ServiceNow docs site every time.

Record Operations

Page What it covers
GlideRecord The workhorse. Query, read, write, update, delete tables.
GlideRecordSecure GlideRecord with ACL enforcement baked in.
GlideAggregate Aggregation queries — COUNT, SUM, AVG, MIN, MAX.
GlideQuery Modern fluent query builder (San Diego+).
GlideFilter Filter record data without querying the database.

Dates & Time

Page What it covers
GlideDateTime Date-time objects — the one you'll actually use.
GlideDate Date-only objects. Less common, but sometimes that's all you need.
GlideTime Time-only objects (no date).
GlideDuration Time spans — differences between dates, durations.

Data Types & Fields

Page What it covers
GlideElement A single field on a record.
GlideEncrypter Encryption/decryption of field values.
Field Attributes The attributes you can set on dictionary fields.
Variable Attributes Attributes for catalog variables.

XML & Document Processing

Page What it covers
XMLDocument2 Parse and build XML documents.
XMLNodeIterator Iterate through XML node lists.
GlideSystem System-level methods — gs.* utilities.
GlideServlet Working with the servlet request/response.

REST & Integration

Page What it covers
RESTRequest Inbound REST requests — reading request data.
RESTRequestBody Reading the body of an inbound REST request.
RESTResponse Building and sending REST responses.
RESTResponseV2 Enhanced REST response handling.
RESTMessageV2 Outbound REST calls — send requests to external systems.
GlideOAuth OAuth token handling.
ScriptLoader Load and execute scripts from the database.

UI & Portal

Page What it covers
current The current GlideRecord in business rules.
g_user The g_user object — current user info on the client.
GlideUser Server-side user info.
GlideSession Session data management.
GlideForm Client-side form control (g_form).
GlideList Client-side list control (g_list).
GlideNavigation Navigate users to URLs, records, or popups.
GlideOverlay Overlay dialogs and popups on the UI.
GlideAjax Client-to-server AJAX calls (GlideAjax).
GlideScopedEvaluator Execute scripts from strings in a scoped context.
GlideTableHierarchy Navigate the table inheritance tree.
GlideSchedule Work with schedules, holidays, and calendar duration.
CartJS Client-side shopping cart API.
Jelly Jelly templating in ServiceNow.
SPModal Service Portal modal dialogs.
SPUtil Service Portal utility methods.
GlideSPScriptable Server-side Service Portal scriptable.
GlideSPUserCriteria User criteria for Service Portal content.

Platform & Plugins

Page What it covers
GlidePluginManager Check if plugins are activated.
GlideDBFunctionBuilder Build database-specific SQL functions.
GlideLocale Locale-aware formatting for numbers and dates.
Operators Query operators for filter conditions.