Scripts / reference
Approval assignment scripts
This is a searchable version of the useful approval and assignment scripts.
THE SERVICENOW DOCUMENTATION LIBRARY
Search the documentation here. No installation, database download, or account needed.
Source: ServiceNow’s public documentation · Australia release · refreshed daily when the sync worker is running.
51,657 documents indexed · Last published Oct 30, 2026 at 06:29 UTC
Scripts / reference
This is a searchable version of the useful approval and assignment scripts.
Employee service management
--- title: Using Document Templates: Custom use case description: Understand how to use Document Templates outside of HR Service Delivery.
Server API Reference / concept
The DataBuilder API provides methods to create a series of data points for a metric. Use the sn_clotho.Client.put() method to save the values.Creates an instance of the DataBuilder class.Adds a series of data points to the DataBuilder object.
Server API Reference / concept
The hrActivityUtils script include enables you to create HR cases from a record producer.Creates a case from a record producer and service. This method is intended to be called as-is to create a producer and does not require supplying data.
Service Operations Workspace / task
Configure the support group recommendations that should be displayed in the Experts on-call panel for an incident.
Server API Reference / concept
The GlideSysAttachment API provides methods to handle attachments.Creates an instance of the GlideSysAttachment class.Adds a single attribute to an existing attachment record.Adds multiple attributes to an attachment record.Copies attachments from the source record to the…
Localization Framework / reference
The LFDocumentContentBuilder provides utility functions to build document content. Use these functions to write the logic to extract the translatable content from any artifacts regardless of them using standard tables or not for translations.
Platform administration / task
Store dynamic attributes and their values on a record.
Platform administration / reference
This is a searchable version of the Useful Attachment Scripts.
Server API Reference / concept
The OAuthUtil script include modifies request parameters and parses the token response during runtime.Returns a GlideRecord representing the current OAuth profileAdds a name:value pair to the request parameters.Parses the token received into a parameter map.Set the endpoiont…
Server API Reference / concept
The NotifyUtil script include provides utility methods to use when interacting with Notify calls and SMS messages using server-side scripts.Instantiates a NotifyUtil class object.Returns all of the Notify telephone numbers and related Notify information from a specified source…
Scripts / concept
You can use a before business rule script to cancel or abort the current database action using the current.setAbortAction(true) method.
Scripts / topic
ServiceNow provides APIs for the Glide Server.The GlideAggregate class is an extension of GlideRecord and allows database aggregation (COUNT, SUM, MIN, MAX, AVG) queries to be done.
Advanced Work Assignment / task
Create a payload for external third-party providers to send your work items to the external queue.
Server API Reference / concept
The GlideMultiRecurrence API provides methods that return GlideDateTime objects that describe the run times for a specified scheduled job.Returns a GlideDateTime object for each scheduled run time (occurrence) that a specified scheduled job should execute within a specific time…
Platform administration / concept
Review the existing Incident Open metric definition to see how you can create your own custom metric.
Server API Reference / concept
The NotifyConferenceUtil API provides methods to manage Notify conference calls and SMS messages for various telephony service providers, such as Zoom and Webex.Instantiates a NotifyConferenceUtils object (constructor).Adds a participant to a specified conference call using…
Server API Reference / concept
The BusinessServiceManager API provides methods that unify service management by converting manually-created services to application services, populating application services, and adding/removing configuration items and connections.Instantiates a BusinessServiceManager…
Platform user interface / task
The condition builder alone cannot create some filters, such as displaying a record set that depends on an unrelated table. If you know JavaScript, you can create JavaScript functions for use in advanced filters.
Scripts / concept
You can use scripting to reference any request item variable from a table in scoped and non-scoped environment.
The same documentation is available through the public REST API.
GET /api/docs/search?q=GlideRecord&limit=20 GET /api/docs/document?path=… GET /api/docs/:id?revision=…
Search returns document paths, IDs, snippets, and an index revision. Read by path for a stable reference; numeric IDs should be used with the returned revision. Document bodies are Markdown.