Server API reference

Server-side Glide APIs enable you to to create scripts to run on the server. Script includes provide common functionality that you can include in your server-side scripts. This page provides links to reference information for the server-side APIs and script includes.

Table 1. Glide API reference
Class Description
CMDBUtil

For additional information, see CMDBUtil on the ServiceNow Developers site.

Provides utility methods for creating and managing table relationships in the configuration management database (CMDB) and managing CMDB baselines.
ExpenseLine

For additional information, see ExpenseLine on the ServiceNow Developers site.

Provides methods for generating expense line (fm_expense_line) records from your own server-side scripts for Cost Management.
GlideAggregate

For additional information, see GlideAggregate on the ServiceNow Developers site.

Extends GlideRecord to allow database aggregation queries, such COUNT, SUM, MIN, MAX, and AVG, for creating customized reports or calculations in calculated fields.
GlideDateTime

For additional information, see GlideDateTime on the ServiceNow Developers site.

Performs date-time operations, such as date-time calculations, formatting a date-time, or converting between date-time formats.
GlideElement

For additional information, see GlideElement on the ServiceNow Developers site.

Provides methods to operate on the fields of the current GlideRecord.
GlideRecord

For additional information, see GlideRecord on the ServiceNow Developers site.

Provides methods for performing database operations. GlideRecord is a special Java class that can be used in JavaScript as if it were a native JavaScript class, instead of writing SQL queries.
GlideRecordSecure

For additional information, see Using GlideRecordSecure.

Provides GlideRecord methods that enforce access control lists (ACLs).
GlideSystem

For additional information, see GlideSystem on the ServiceNow Developers site.

Provides methods to obtain information about the system.
GlideTimeline

For additional information, see GlideTimeline on the ServiceNow Developers site.

Provides methods for configuring and displaying a Glide Windowing Toolkit Timeline when customizing timeline schedule pages.
Service Catalog

For additional information, refer to Service catalog script API.

Provides methods for accessing service catalog actions.
Table 2. Script Includes reference
Class Description
Change Collision Provides helper functions useful for scripting Change Collision on the server-side or when using AJAX calls on the client.
Discovery Provides functions to accomplish common Discovery tasks.
JavaScript Tools Provides general JavaScript utility functions that are useful for tasks such as logging, validating scripts, and exception wrapping.
MID Server Provides functions to accomplish common MID Server tasks.
Utility Provides general utility functions that are useful when working with arrays, datetimes, and tables.
Workflow Provides functions that are useful when working with workflows.
Table 3. Notify API reference
Class Description
Notify API Provides functionality for sending SMS messages and setting up conference calls.