- Glide Server APIs
ServiceNow provides APIs for the Glide Server.
- Classic Business rules
A business rule is a server-side script that runs when a record is displayed, inserted, updated, or deleted, or when a table is queried.
- Script includes
Script includes are used to store JavaScript that runs on the server.
- Processors
Processors provide a customizable URL endpoint that can execute arbitrary server-side JavaScript code and produce output such as TEXT or JSON. Creating custom processors is deprecated.
- Scripts - Background module
Administrators can use the Scripts - Background module to run arbitrary JavaScript code from the server.
- Installation settings
Installation settings are global business rules with calculated names. Installation settings are calculated just before a record is displayed and facilitate dynamic determination of access and roles. Installation Settings permit the programmatic determination of a setting.
- Using DurationCalculator to calculate a due date
Using the DurationCalculator script include, you can calculate a due date, using either a simple duration or a relative duration base on schedules.
- Querying tables in script
Using methods in the GlideRecord API, you can return all records from a table, return records from a table that satisfy specific conditions, or return records that include a string from a single table or from multiple tables in a text index group.
- Running order guides automatically
Service catalog order guides allow customers to make a single service catalog request that can generate several ordered items. Administrators can configure order guides to run automatically, from a workflow or a script to generate a set of ordered items without manually submitting a service catalog request. Administrators can also review and reprocess the order guide failures.
- Scriptable assignment of execution plans
Each catalog item has an associated execution plan, used whenever an item of that type is ordered; if no plan is specified, the default plan is used. This default is effective for most organizations, but your execution plan may need to vary based on additional criteria.
- Using regular expressions in server-side scripts
JavaScript regular expressions automatically use an enhanced regex engine, which provides improved performance and supports all behaviors of standard regular expressions as defined by Mozilla JavaScript. The enhanced regex engine supports using Java syntax in regular expressions.
- Scriptable service catalog variables
You can use scripting to reference any request item variable from a table in scoped and non-scoped environment.
- Setting a GlideRecord variable to null
GlideRecord variables (including current) are initially null in the database. Setting these back to an empty string, a space, or the JavaScript null value will not result in a return to this initial state.
- Schedule Pages
A schedule page is a record that contains a collection of scripts that allow for custom generation of a calendar or timeline display.
- XMLDocument script object
A JavaScript object wrapper for parsing and extracting XML data from an XML document (String).
- JavaScript engine on the platform
The JavaScript engine that evaluates server-side scripts supports the ECMAScript 2021 (ES12) standard.
- JavaScript API Context-sensitive help
The syntax editor can display context-sensitive API information.