Contents Now Platform Custom Business Applications Previous Topic Next Topic JavaScript API reference Subscribe Log in to subscribe to topics and get notified when content changes. ... SAVE AS PDF Selected Topic Topic & Subtopics All Topics in Contents Share JavaScript API reference Use JavaScript APIs in scripts you write to change the functionality of applications, or when you create new applications. AbstractDBObject - GlobalProvides common methods for classes based on records in the database.AbstractReconciler - GlobalUse this script include as a base class to create your own Discovery reconciler.AbstractScriptProcessor - GlobalBase JavaScript processor class that other JavaScript processors extend.AbstractTimeLineSchedulePage - GlobalA helper class to facilitate working with the data displayed on timelines.ActivityHistoryRecord - Global A data object that is a member of the WorkflowModelManager class; ActivityHistoryRecord methods facilitate interacting with the WorkflowModelManager object.AgentMetrics - GlobalProcesses inbound MID server metrics.APCHandler - GlobalHandles SNMP classification and identification for UPSs, environmental monitors, and PDUs made by APC.ApcPduOutletReconciler - GlobalReconciles outlets for power distribution units.ArrayUtil - GlobalArrayUtil API is a script include with useful functions for working with JavaScript arrays.AssessmentCreation - GlobalThe AssessmentCreation class provides methods that administrators can use to generate assessments and surveys.AutomationException - GlobalProvides generic exception wrapping for automation.cabrillo - Client Cabrillo JS is a client side JavaScript API for accessing capabilities inside ServiceNow native mobile applications.Cabrillo JS constantsThese are the constants used by Cabrillo JS.Cabrillo JS data typesThese are common data types used by Cabrillo JS APIs.cabrillo.attachments - ClientThe name space for Cabrillo JS attachment functions. This enables adding and viewing attachments.cabrillo.camera - ClientCabrillo JS camera functions to provide camera access for bar code scanning.cabrillo.geolocation - ClientCabrillo JS functions to provide access to the device's location services.cabrillo.list - ClientCabrillo JS functions to provide native UI for selecting items from a list.cabrillo.modal - ClientCabrillo JS functions for presenting web content inside of native modals.cabrillo.navigation - ClientCabrillo JS functions for forward and backward navigation. cabrillo.viewLayout - ClientCabrillo JS functions to provide access to native UI elements like buttons and spinners. CatalogJS - ScopedCatalogJS API enables you to use methods to check and retrieve catalog-specific properties. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogJS API.CatItem - ScopedCatItem API enables you to create and modify service catalog items using scripts.CatalogSearch - ScopedCatalogSearch API enables you to search catalog item. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogSearch API.CartJS - ScopedCartJS API enables you to access the shopping cart for a user. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CartJS API.CatalogItemVariable - ScopedCatalogItemVariable API enables you to create and modify service catalog item variables using scripts.CatalogClientScript - ScopedCatalogClientScript API enables you to create, modify, or delete catalog client script records. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogClientScript API.CatalogItemVariableSet - ScopedCatalogItemVariableSet API enables you to create and modify service catalog item variable sets using scripts.CatalogItemVariableSetM2M - ScopedCatalogItemVariableSetM2M API enables you to create and modify service catalog item variable set many-to-many (M2Ms) using scripts.CatCategory - ScopedCatCategory API enables you to create and modify service catalog categories using scripts.CertificateEncryption - ScopedAPIs available for encrypting certificates in scoped applications.CIUtils - GlobalCIUtils is a utility class for working with configuration items.ChangeCollisionHelper - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflict - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflictHandler - GlobalHelper functions found in the Change Management Collision Detector Plugin.CIData - GlobalUtility class for working with CI data structures in JavaScript.CIIdentification - GlobalMain class for discovery CI identification.CIIdentifierResult - GlobalGets the result returned by an identifier.CimCIData - GlobalProvides a wrapper for CIM CI data manipulation.CimIDSensor - GlobalPerforms identification for CIM probe results.CimInstanceToken - GlobalRepresents the unique query identity of a CIM instance.CimProbe - GlobalMaintains CIM probe meta data.CimProbeResult - GlobalProcesses CIM probe results.CIRelatedList - GlobalUtility class for working with CI Related lists.ClassifierProbes - GlobalProvides a classifier probe launch facility. Encapsulates an array of probe information records, initialized either from a JavaScript array or the XML serialized version.Client - Scoped, GlobalProvides methods to add data to the MetricBase database, to execute transforms on the MetricBase database, and to receive the results of the transforms.CMDBGroupAPI - ScopedThe CMDBGroupAPI provided methods for performing actions on CMDB groups.CMDBTransformUtil - GlobalThe CMDBTransformUtil class uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized sources when updating the CMDB in onBefore transform map scripts. This class cannot be used in other scripts.CMDBUtil - GlobalThe CMDBUtil API provides utility methods for creating and managing table relationships in the configuration management database (CMDB) and managing CMDB baselines. ConnectActionResponse - GlobalThe ConnectActionResponse API provides a method to create a GlideRecord.ConnectionInfo - Scoped, GlobalUse ConnectionInfo API to get connection attribute information through the connection and credential alias. ConnectionInfoProvider - Scoped, GlobalUse ConnectionInfoProvider API to select connection information through the connection alias. Conversation - ScopedConversation API enables you to create or modify Connect conversations. CriteriaEvaluator - GlobalImplements a general-purpose criteria evaluator. CustomEvent - ClientYou can use CustomEvent API to show qualified embedded help in the right sidebar.Data - Scoped, GlobalA Data object contains the results of transform performed by a sn_clotho.Client.transform() method.DataBuilder - Scoped, GlobalUse the DataBuilder class to create a series of data points for a metric. Use the sn_clotho.Client.put() method to save the values. DateTimeUtils - GlobalDateTimeUtils class is a collection of date/time functions.DurationCalculator - GlobalProvides methods for calculating durations and due dates.ExpenseAllocation - GlobalThe ExpenseAllocation API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating custom expense allocation records (fm_expense_allocation) from scripted expense allocation rules.ExpenseLine - GlobalThe ExpenseLine API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating expense line (fm_expense_line) records from your own server-side scripts.ExtractTermsFromAttachment - GlobalExtracts terms from an attachment.FormInfoHeader - GlobalFormInfoHeader allows you to add an HTML message as a form info message.GenericUPSAlarmsReconciler - GlobalConcrete reconciler for generic UPS alarms.GenericUPSBypassReconciler - GlobalConcrete reconciler for generic UPS bypasses.GenericUPSInputsReconciler - GlobalConcrete reconciler for generic UPS inputs.GenericUPSOutputsReconciler - GlobalConcrete reconciler for generic UPS outputs.GlideAggregate - GlobalGlideAggregate enables you to easily create database aggregation queries.GlideAggregate - ScopedGlideAggregate enables you to easily create database aggregation queries.GlideAjax - ClientThe GlideAjax class enables a client script to call server-side code in a script include. GlideAjaxV3 - ClientThe GlideAjaxV3 API provides the ability to asynchronously execute server-side scripts from a client-side script.GlideappCalculationHelper - GlobalThe GlideappCalculationHelper API is a scriptable object that provides methods that add items to an existing request or request the recalculation of the price of a request.GlideCertificateEncryption - GlobalAPIs available for encrypting certificates.GlideConversation - GlobalThe GlideConversation API provides access to information in a Connect message. GlideDate - Scoped The scoped GlideDate class provides methods for performing operations on GlideDate objects, such as instantiating GlideDate objects or working with GlideDate fields. GlideDateTime - GlobalThe GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDateTime - ScopedThe scoped GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDBFunctionBuilder - Scoped, GlobalBuild functions to perform SQL operations in the database.GlideDialogWindow - ClientThe GlideDialogWindow API provides methods for displaying a dialog in the current window and frame.GlideDigest - ScopedThe scoped GlideDigest class provides methods for creating a message digest from strings or input streams using MD5, SHA1, or SHA256 hash algorithms. GlideDocumentV3 - ClientThe GlideDocument class provides the ability to search a DOM element, a document, or a JQuery element.GlideDuration - ScopedThe scoped GlideDuration class provides methods for working with spans of time or durations.GlideElement - GlobalThe GlideElement API provides a number of convenient script methods for dealing with fields and their values. GlideElement methods are available for the fields of the current GlideRecord. GlideElement - ScopedThe Scoped GlideElement API provides a number of convenient script methods for dealing with fields and their values. Scoped GlideElement methods are available for the fields of the current GlideRecord. GlideElementDescriptor - ScopedThe scoped GlideElementDescriptor API provides information about individual fields.GlideEmailOutbound - ScopedThe scoped GlideEmailOutbound class implements the email object for scoped applications. You can use the GlideEmailOutbound methods with the email global object available in mail scripts. The email object behaves identically for global and scoped applications.GlideEncrypter - GlobalGlideEncrypter provides methods to encrypt and decrypt strings using the Triple DES algorithm.GlideScopedEvaluator - GlobalThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideScopedEvaluator - ScopedThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideExcelParser - Scoped, GlobalYou can parse .xlsx formatted Excel files.GlideFilter - ScopedThe Scoped GlideFilter API provides a method to determine if a record meets a specified set of requirements. GlideForm - ClientThe GlideForm API provides methods to customize forms. GlideForm.js is the JavaScript class containing the methods. The global object g_form is used to access GlideForm methods. GlideForm methods are only used on the client. Mobile GlideForm (g_form) - ClientMobile GlideForm (g_form) methods enable you to work with forms on the mobile platform.GlideFormScratchpad - Scoped, ClientThe scoped GlideFormScratchpad class implements the g_scratchpad object for scoped applications. GlideGuidV3 - ClientYou can create a globally unique identifier.GlideImpersonate - GlobalThe global GlideImpersonate API enables administrators to pose as another authenticated user for testing purposes.GlideList2 (g_list) - ClientGlideList2 is a JavaScript class used to customize (v2) lists.GlideListV3 (g_list) - ClientUse GlideListV3 to manipulate lists.GlideListProperties - GlobalCreate a list and set list properties. For example, define whether a list has a filter, breadcrumbs, and search. GlideLocale - ScopedGlideLocale provides information about display information for the local instance.GlideMenu (g_menu and g_item) - ClientGlideMenu methods are used in UI Context Menus, in the onShow scripts to customize UI Context Menu items. GlideModalFormV3 - ClientDisplays a form in a GlideModal.GlideModalV3 - ClientProvides methods for displaying a content overlay.GlideNavigationV3 - ClientProvides methods to control and refresh the navigator and main frame.GlideNotificationV3 - ClientYou can show messages over the page content.GlideOAuthClient - Scoped, GlobalUse these methods for requesting and revoking OAuth refresh and access tokens. GlideOAuthClientRequest - Scoped, GlobalUse these methods for handling OAuth client requests. GlideOAuthClientResponse - Scoped, GlobalUse these methods for handling OAuth client responses. GlideOAuthToken - Scoped, GlobalUse the GlideOAuthToken methods for retrieving OAuth access token and information about the access token.GlidePluginManager - ScopedThe scoped GlidePluginManager API provides a method for determining if a plugin has been activated.GlideQueryCondition - GlobalThe GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideQueryCondition - ScopedThe scoped GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideRecord - ClientGlideRecord is used for database operations. The client-side GlideRecord API enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideRecord - GlobalGlideRecord is used for database operations. GlideRecord - ScopedScoped GlideRecord is used for database operations. GlideRecordUtil - GlobalA utility class for working with GlideRecordsGlideRecordV3 - ClientGlideRecord is used for database operations. Client-side GlideRecord enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideSchedule - ScopedThe scoped GlideSchedule API provides methods for performing operations on GlideSchedule objects, such as adding new schedule segments to a schedule, determining if a datetime is within the schedule, or setting the schedule timezone.GlideScriptableInputStream - ScopedA GlideScriptableInputStream object cannot be instantiated directly, but is used as an opaque object which is used to connect an input stream from GlideSysAttachment.getContentStream() with other streaming APIs, such as GlideTextReader, GlideDigest, and XMLDocument2.GlideScriptedProcessor - ScopedServiceNow processors are equivalent to Java servlets. GlideSecureRandomUtil - ScopedThe scoped GlideSecureRandomUtil API provides methods for generating integers, long values, and strings.GlideServletRequest - Scoped The GlideServletRequest API is used in processor scripts.GlideServletResponse - ScopedThe GlideServletResponse API is used in processor scripts.GlideSession - GlobalThe GlideSession API allows you to find information about the current session. GlideSession - ScopedThe scoped GlideSession API provides a way to find information about the current session. GlideSPScriptable - ScopedThe GlideSPScriptable API provides a set of methods for use in Service Portal Widgets.GlideSysAttachment - ScopedThe GlideSysAttachment API provides a way to handle attachments.GlideSysListControl - ScopedThe scoped GlideSysListControl class allows you to determine if the New or Edit buttons are displayed.GlideSystem - GlobalThe GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideSystem - ScopedThe scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideTableHierarchy - ScopedThe Scoped GlideTableHierarchy API provides methods for handling information about table relationships.GlideTextReader - ScopedProvides the ability to read single lines from an input stream. Because an input stream is used, it is not subject to the 5MB attachment size limit.GlideTime - ScopedThe scoped GlideTime class provides methods for performing operations on GlideTime objects, such as instantiating GlideTime objects or working with GlideTime fields.GlideTimeline - GlobalThe GlideTimeline class provides the core implementation for configuring and displaying a Glide Windowing Toolkit Timeline.GlideTimelineItem - GlobalGlideTimelineItem extends the abstract ScheduleItem class to define additional properties that are specific to the time line.GlideUICompatibility - ScopedThe scoped GlideUICompatibility class provides the ability for scoped applications to define their own minimum browser versions. This is done by creating system properties for the scoped application. GlideURI - Scoped, GlobalThe GlideURI class is a utility class for handling the URI parameter. The GlideURI class is available in scoped and global scripts.GlideURLV3 - ClientProvides methods for manipulating a URI.GlideUser - ClientThe GlideUser API provides access to information about the current user and current user roles. Using the GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - ScopedThe scoped GlideUser API provides access to information about the current user and current user roles. Using the scoped GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - GlobalThe GlideUser API provides access to information about the current user and current user roles. HistoryWalker - Scoped, GlobalThe HistoryWalker API uses the audit/history tables to generate a historical version of an existing record. It supports the ability to return a GlideRecord to a previous update count (walked GlideRecord) with the appropriate GlideElements populated. After the walked GlideRecord is retrieved, the API provides the ability to move forward and backward the update numbers navigating through its historical updates.HostnameJS - GlobalFormats host names according to property settings.i18NV3 - ClientProvides methods to get and format translated messages.ICalUtilSNC - GlobalThe ICalUtilSNC API provides functions to generate iCalendar compliant events.ICalUtil - GlobalThe ICalUtil API is an extension of the ICalUtilSNC API.IdentificationEngine - ScopedThe IdentificationEngine uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IdentificationEngineScriptableApi - GlobalThe IdentificationEngineScriptableApi uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IDResult - GlobalA container class for the result of a CI Identifier.IPAddressFixup - GlobalAfter a device has been successfully discovered, ensures that no other device has the same IP address. If any duplicates are found, the IP address field is cleared.IPService - GlobalEncapsulates an IP Service. JavascriptProbe - GlobalProvides methods for using the JavascriptProbe on the MID server.J2js - Global2JS script include allows you to convert java objects to JavaScript objects. JSON - GlobalProvides methods to create JSON objects from a string, and to turn JSON objects into strings.JSONParser - GlobalProvides a JSON parser that does not use the JavaScript eval() function. JSON - ScopedProvides scoped methods to create JSON objects from a string, and to turn JSON objects into strings.JSUtil - GlobalJSUtil is a class of shortcuts for common JavaScript routines.Logger - GlobalInbound email actions can use this JavaScript function to append messages to the email log.LSOFParser - GlobalParses the output of the lsof command: lsof -i4TCP -n -P -F pcnfTMIDServer - GlobalEncapsulates the notion of a MID server. MIDServerAjax - GlobalProvides AJAX functionality for sending a test probe to the MID server.MIDServerCluster - GlobalFinds the MID server clusters for a given MID server and reassigns the jobs if necessary.MIDServerFileSync - GlobalChecks to see if there are any changes to attachments on tables that are instances of MID server synchronized files (ecc_agent_sync_file) and, if so, notifies the MID servers of a change. MIDServerFinder - GlobalFinds a list of MID servers for given IP addresses.MIDServerManage - GlobalAllows you to manage a MID server, by sending messages to start, stop, upgrade, get logs, send test probes, and send system messages.MIDServerSelector - GlobalFinds a MID server based on capabilities and target IP address.MonitorMIDServer - GlobalMonitors MID servers using the heartbeat probe to check for MID servers that are down, sends heartbeat requests, and kills old heartbeat requests.NameValuePairs - GlobalConverts between maps and strings representing the name/value pairs in the map.NetwareHandler API - GlobalImplements an SNMP handler for Netware OS. Notify - GlobalThe Notify API allows you to interact with Notify calls and SMS messages using scripts.NotifyAction - GlobalThe NotifyAction API allows you to define actions to send to a telephony provider.NotifyPhoneNumber - GlobalThe NotifyPhoneNumber API allows you to query information about a Notify phone number.Notify Client - GlobalThe Notify Client API allows you use Notify telephony functionality, such as making and receiving calls, from a web browser.Legacy Notify API - GlobalThe legacy Notify API provides functionality for sending emails, sending SMS messages, and setting up conference calls.openFrameAPI - GlobalOpenFrame is an omni-present frame that communication partners can use to integrate their systems into the ServiceNow platform. OAuthUtil - GlobalThis script include modifies request parameters and parses the token response during runtime.OCRosterSpanApprovalUtil - GlobalThe OCRosterSpanApprovalUtil API for the PTO approval feature.OCRotation - GlobalThe core OCRotation builds a data structure that is used to display the calendar. OCRotationV2 - GlobalOCRotationV2 is an extension of OCRotation, which is used by Fullcalendar.io and the DHTMLX On-Call Calendar. OCRotaICalendarSNC - GlobalThe OCRotaICalendarSNC API provides iCal formatted events for the a specific user's rotation.OCRotaICalendar - GlobalThe OCRotaICalendar API is an extension of the OCRotaICalendarSNC API.OCRotaMember - GlobalThe OCRotaMember API performs maintenance operations on the cmn_rota_member table.OnCallRotation - GlobalUse to manage on-call schedules.OCSeriesEventGenerator - GlobalThe OCSeriesEventGenerator API generates the repeating VEVENTS for a user's iCalendar.OCTimer - GlobalThe OCTimer API provides the ability to track the length of time it takes for a function to complete.OrderGuide - ScopedOrderGuide API enables you to initialize and view an order guide details. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the OrderGuide API.PADomainUtils - GlobalThe PADomainUtils API enables you to copy Performance Analytics configurations between different domains.PAScorecard - ScopedThe PAScorecard API enables you to query information about Performance Analytics scorecards and indicators.PASnapshot - ScopedThe PASnapshot API enables you to query information about Performance Analytics snapshots.ProbeHandlerCim - GlobalConfigures a CIM probe.ProbeHandlerMulti - GlobalProbe handler for MultiProbes. ProbeHandlerSNMP - GlobalDiscovery probe handler for SNMP probes, invoked when an SNMP probe is about to be created.ProbeHandlerWMI - GlobalDiscovery probe handler for WMI probes.Queue - ScopedThe Queue API allows you to retrieve or join a Connect Support chat queue. QuickRanges - GlobalGenerates IP network, range, and address entries from a convenient comma-separated input field using conventional CIDR network notation, hyphenated range entries, or individual IP addresses.RecordToHTML - GlobalA utility class to turn a record into HTML.RenderProperties - GlobalThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RenderProperties - ScopedThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RESTAPIRequest - Scoped, GlobalA RESTAPIRequest object allows you to access scripted REST API request details in scripts.RESTAPIRequestBody - Scoped, GlobalA RESTAPIRequestBody object allows you to access the body content of a scripted REST API request in scripts.RESTAPIResponse - Scoped, GlobalA RESTAPIResponse object allows you to build a RESTful response to a scripted REST API request.RESTAPIResponseStream - Scoped, GlobalA RESTAPIResponseStream object allows you to write directly to the scripted REST API response stream.RESTMessageV2 - Scoped, GlobalThe RESTMessageV2 API allows you to send outbound REST messages using JavaScript. RESTResponseV2 - Scoped, GlobalThe RESTResponseV2 API allows you to use the data returned by an outbound REST message in JavaScript code.RoundingInterval - GlobalHandles all the details of rounding intervals for CPU speed and RAM size.ScriptLoader - ClientProvides the ability to load scripts asynchronously.SerialNumberManager - GlobalManages the serial numbers for discovery devices.ServiceRegistryQuery - GlobalMaps Shazzam service registry query results against a port probe. Child classes provide specifics on mapping.ShazzamLaunch - GlobalHandles the details of launching a Shazzam probe for a given discovery.ShazzamResult - GlobalEncapsulates a Shazzam result.ShazzamScanner - GlobalEncapsulates a Shazzam scanner.SLARepair - GlobalThe SLARepair API first deletes the existing SLAs and then recreates them from each task's history.SLPServiceRegistryQuery - GlobalMaps Shazzam! SLP query results to port probes.SNMPGatherDocParts - GlobalHandles gathering the parts of an SNMP response document for JavaScript SNMP sensors.SNMPNetworkInterfaces - GlobalCreates network interfaces for JavaScript SNMP sensors.SNMPResponse - GlobalWraps an SNMP payload response instance with methods to safely and easily retrieve SNMP singleton fields or tables.SOAPMessageV2 - Scoped, GlobalThe SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript.SOAPResponseV2 - Scoped, GlobalThe SOAPResponseV2 API allows you to use the data returned by an outbound SOAP message in JavaScript code. spAriaUtil - ClientYou can show messages on a screen reader. The spAriaUtil service is an angular service included as part of the Service Portal angular application. The spAriaUtil service is available in the client script block of Service Portal widgets.spModal - ClientThe spModal class provides an alternative way to show alerts, prompts, and confirmation dialogs. The SPModal class is available in Service Portal client scripts.spUtil - ClientUtility methods to perform common functions in a Service Portal widget client script.StandardCredentialsProvider - Scoped, GlobalUse StandardCredentialsProvider API to retrieve credential information. StartDiscovery - GlobalStarts discovery jobs.StateManagementScriptableApi - GlobalProvides a set of methods for manipulating CI operational states and applying CI actions. StopWatch - ClientUse a StopWatch object to measure the duration of operations.SummaryTableWriter - GlobalThe SummaryTableWriter script include enables the creation of summary sets for reports that can be generated with standard queries and trending.TableUtils - GlobalTableUtils is a class of shortcuts for accessing table related information.TemplatePrinter - ScopedScoped TemplatePrinter handles printing from a mail script to the email message. TimelineSpan - GlobalThis class defines a set of properties that describe the characteristics and interactive behavior of an element rendered within a TimelineItem.TaskStateUtil - GlobalThe TaskStateUtil API is in the task state management utility script include and is used for working with task-type table state attributes.Transformer - Scoped, GlobalManipulate time-series data to prepare the data for evaluation and analysis.TransformPart - Scoped, GlobalUse the TransformPart class to specify details of the transform to be done.TransformResult - Scoped, GlobalProvides the result of a transformation run on time-series data.UPSHandler - GlobalHandles SNMP classification and identification for UPSs.UserCriteria - ScopedUserCriteria API enables you to create, modify, or delete user criteria records using scripts. To use this class in a scoped application, use the sn_uc namespace identifier. The User Criteria Scoped API plugin (ID: com.glideapp.user_criteria.scoped.api) should be enabled to access the UserCriteria API.VariablePoolQuestionSetJS - ScopedVariablePoolQuestionSetJS API enables you to use Variable Pool Question Set. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the VariablePoolQuestionSetJS API.VMUtils - GlobalProvides utility functions for discovery and provisioning of virtual machines.WalkWorkflow - GlobalWalks the workflow and gets the list of successors for each activity along with a shortest path order that indicates the activity depth in the workflow.WFActivityHandler - GlobalThe base class for all workflow activities. WindowsOSNameHelper - GlobalHandles the formatting of Windows OS names.Workflow - GlobalWorkflow scripts provide an interface with the workflow engine.Workflow - ScopedThe scoped Workflow API provides methods that can be used in an activity definition script.WorkflowDuration - GlobalThis class calculates the duration (in seconds) based on the variables of a workflow activity. It is an interface between Workflow Timer() and DurationCalculator(). WorkflowModelManager - GlobalThe WorkflowModelManager class provides a way to query the workflow model, to step backwards and forwards between specified wf_history items, and to query the history for activity and transition-specific information.WorkflowModelManagerAjax - GlobalProvides an AjaxProcessor wrapper for the WorkflowModelManager. This class derives from AbstractAjaxProcessor. WorkflowScheduler - GlobalThis code is executed in business rule Set workflow scheduler script on table wf_workflow_schedule.WorkflowTimeline - GlobalGenerates a view that shows a workflow context on the timeline.XMLDocument2 - ScopedXMLDocument2 is a JavaScript Object wrapper for parsing and extracting XML data from an XML string. XMLNode - ScopedThe scoped XMLNode API allows you to query values from XML nodes. XMLNodes are extracted from XMLDocument2 objects, which contain XML strings.XMLNodeIterator - ScopedThe scoped XMLNodeIterator class allows you to iterate through a node of a XML document.XMLUtilJS - GlobalProvides XML utilities for JavaScript to be used with Discovery scripts. On this page Send Feedback Previous Topic Next Topic
JavaScript API reference Use JavaScript APIs in scripts you write to change the functionality of applications, or when you create new applications. AbstractDBObject - GlobalProvides common methods for classes based on records in the database.AbstractReconciler - GlobalUse this script include as a base class to create your own Discovery reconciler.AbstractScriptProcessor - GlobalBase JavaScript processor class that other JavaScript processors extend.AbstractTimeLineSchedulePage - GlobalA helper class to facilitate working with the data displayed on timelines.ActivityHistoryRecord - Global A data object that is a member of the WorkflowModelManager class; ActivityHistoryRecord methods facilitate interacting with the WorkflowModelManager object.AgentMetrics - GlobalProcesses inbound MID server metrics.APCHandler - GlobalHandles SNMP classification and identification for UPSs, environmental monitors, and PDUs made by APC.ApcPduOutletReconciler - GlobalReconciles outlets for power distribution units.ArrayUtil - GlobalArrayUtil API is a script include with useful functions for working with JavaScript arrays.AssessmentCreation - GlobalThe AssessmentCreation class provides methods that administrators can use to generate assessments and surveys.AutomationException - GlobalProvides generic exception wrapping for automation.cabrillo - Client Cabrillo JS is a client side JavaScript API for accessing capabilities inside ServiceNow native mobile applications.Cabrillo JS constantsThese are the constants used by Cabrillo JS.Cabrillo JS data typesThese are common data types used by Cabrillo JS APIs.cabrillo.attachments - ClientThe name space for Cabrillo JS attachment functions. This enables adding and viewing attachments.cabrillo.camera - ClientCabrillo JS camera functions to provide camera access for bar code scanning.cabrillo.geolocation - ClientCabrillo JS functions to provide access to the device's location services.cabrillo.list - ClientCabrillo JS functions to provide native UI for selecting items from a list.cabrillo.modal - ClientCabrillo JS functions for presenting web content inside of native modals.cabrillo.navigation - ClientCabrillo JS functions for forward and backward navigation. cabrillo.viewLayout - ClientCabrillo JS functions to provide access to native UI elements like buttons and spinners. CatalogJS - ScopedCatalogJS API enables you to use methods to check and retrieve catalog-specific properties. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogJS API.CatItem - ScopedCatItem API enables you to create and modify service catalog items using scripts.CatalogSearch - ScopedCatalogSearch API enables you to search catalog item. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogSearch API.CartJS - ScopedCartJS API enables you to access the shopping cart for a user. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CartJS API.CatalogItemVariable - ScopedCatalogItemVariable API enables you to create and modify service catalog item variables using scripts.CatalogClientScript - ScopedCatalogClientScript API enables you to create, modify, or delete catalog client script records. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogClientScript API.CatalogItemVariableSet - ScopedCatalogItemVariableSet API enables you to create and modify service catalog item variable sets using scripts.CatalogItemVariableSetM2M - ScopedCatalogItemVariableSetM2M API enables you to create and modify service catalog item variable set many-to-many (M2Ms) using scripts.CatCategory - ScopedCatCategory API enables you to create and modify service catalog categories using scripts.CertificateEncryption - ScopedAPIs available for encrypting certificates in scoped applications.CIUtils - GlobalCIUtils is a utility class for working with configuration items.ChangeCollisionHelper - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflict - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflictHandler - GlobalHelper functions found in the Change Management Collision Detector Plugin.CIData - GlobalUtility class for working with CI data structures in JavaScript.CIIdentification - GlobalMain class for discovery CI identification.CIIdentifierResult - GlobalGets the result returned by an identifier.CimCIData - GlobalProvides a wrapper for CIM CI data manipulation.CimIDSensor - GlobalPerforms identification for CIM probe results.CimInstanceToken - GlobalRepresents the unique query identity of a CIM instance.CimProbe - GlobalMaintains CIM probe meta data.CimProbeResult - GlobalProcesses CIM probe results.CIRelatedList - GlobalUtility class for working with CI Related lists.ClassifierProbes - GlobalProvides a classifier probe launch facility. Encapsulates an array of probe information records, initialized either from a JavaScript array or the XML serialized version.Client - Scoped, GlobalProvides methods to add data to the MetricBase database, to execute transforms on the MetricBase database, and to receive the results of the transforms.CMDBGroupAPI - ScopedThe CMDBGroupAPI provided methods for performing actions on CMDB groups.CMDBTransformUtil - GlobalThe CMDBTransformUtil class uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized sources when updating the CMDB in onBefore transform map scripts. This class cannot be used in other scripts.CMDBUtil - GlobalThe CMDBUtil API provides utility methods for creating and managing table relationships in the configuration management database (CMDB) and managing CMDB baselines. ConnectActionResponse - GlobalThe ConnectActionResponse API provides a method to create a GlideRecord.ConnectionInfo - Scoped, GlobalUse ConnectionInfo API to get connection attribute information through the connection and credential alias. ConnectionInfoProvider - Scoped, GlobalUse ConnectionInfoProvider API to select connection information through the connection alias. Conversation - ScopedConversation API enables you to create or modify Connect conversations. CriteriaEvaluator - GlobalImplements a general-purpose criteria evaluator. CustomEvent - ClientYou can use CustomEvent API to show qualified embedded help in the right sidebar.Data - Scoped, GlobalA Data object contains the results of transform performed by a sn_clotho.Client.transform() method.DataBuilder - Scoped, GlobalUse the DataBuilder class to create a series of data points for a metric. Use the sn_clotho.Client.put() method to save the values. DateTimeUtils - GlobalDateTimeUtils class is a collection of date/time functions.DurationCalculator - GlobalProvides methods for calculating durations and due dates.ExpenseAllocation - GlobalThe ExpenseAllocation API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating custom expense allocation records (fm_expense_allocation) from scripted expense allocation rules.ExpenseLine - GlobalThe ExpenseLine API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating expense line (fm_expense_line) records from your own server-side scripts.ExtractTermsFromAttachment - GlobalExtracts terms from an attachment.FormInfoHeader - GlobalFormInfoHeader allows you to add an HTML message as a form info message.GenericUPSAlarmsReconciler - GlobalConcrete reconciler for generic UPS alarms.GenericUPSBypassReconciler - GlobalConcrete reconciler for generic UPS bypasses.GenericUPSInputsReconciler - GlobalConcrete reconciler for generic UPS inputs.GenericUPSOutputsReconciler - GlobalConcrete reconciler for generic UPS outputs.GlideAggregate - GlobalGlideAggregate enables you to easily create database aggregation queries.GlideAggregate - ScopedGlideAggregate enables you to easily create database aggregation queries.GlideAjax - ClientThe GlideAjax class enables a client script to call server-side code in a script include. GlideAjaxV3 - ClientThe GlideAjaxV3 API provides the ability to asynchronously execute server-side scripts from a client-side script.GlideappCalculationHelper - GlobalThe GlideappCalculationHelper API is a scriptable object that provides methods that add items to an existing request or request the recalculation of the price of a request.GlideCertificateEncryption - GlobalAPIs available for encrypting certificates.GlideConversation - GlobalThe GlideConversation API provides access to information in a Connect message. GlideDate - Scoped The scoped GlideDate class provides methods for performing operations on GlideDate objects, such as instantiating GlideDate objects or working with GlideDate fields. GlideDateTime - GlobalThe GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDateTime - ScopedThe scoped GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDBFunctionBuilder - Scoped, GlobalBuild functions to perform SQL operations in the database.GlideDialogWindow - ClientThe GlideDialogWindow API provides methods for displaying a dialog in the current window and frame.GlideDigest - ScopedThe scoped GlideDigest class provides methods for creating a message digest from strings or input streams using MD5, SHA1, or SHA256 hash algorithms. GlideDocumentV3 - ClientThe GlideDocument class provides the ability to search a DOM element, a document, or a JQuery element.GlideDuration - ScopedThe scoped GlideDuration class provides methods for working with spans of time or durations.GlideElement - GlobalThe GlideElement API provides a number of convenient script methods for dealing with fields and their values. GlideElement methods are available for the fields of the current GlideRecord. GlideElement - ScopedThe Scoped GlideElement API provides a number of convenient script methods for dealing with fields and their values. Scoped GlideElement methods are available for the fields of the current GlideRecord. GlideElementDescriptor - ScopedThe scoped GlideElementDescriptor API provides information about individual fields.GlideEmailOutbound - ScopedThe scoped GlideEmailOutbound class implements the email object for scoped applications. You can use the GlideEmailOutbound methods with the email global object available in mail scripts. The email object behaves identically for global and scoped applications.GlideEncrypter - GlobalGlideEncrypter provides methods to encrypt and decrypt strings using the Triple DES algorithm.GlideScopedEvaluator - GlobalThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideScopedEvaluator - ScopedThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideExcelParser - Scoped, GlobalYou can parse .xlsx formatted Excel files.GlideFilter - ScopedThe Scoped GlideFilter API provides a method to determine if a record meets a specified set of requirements. GlideForm - ClientThe GlideForm API provides methods to customize forms. GlideForm.js is the JavaScript class containing the methods. The global object g_form is used to access GlideForm methods. GlideForm methods are only used on the client. Mobile GlideForm (g_form) - ClientMobile GlideForm (g_form) methods enable you to work with forms on the mobile platform.GlideFormScratchpad - Scoped, ClientThe scoped GlideFormScratchpad class implements the g_scratchpad object for scoped applications. GlideGuidV3 - ClientYou can create a globally unique identifier.GlideImpersonate - GlobalThe global GlideImpersonate API enables administrators to pose as another authenticated user for testing purposes.GlideList2 (g_list) - ClientGlideList2 is a JavaScript class used to customize (v2) lists.GlideListV3 (g_list) - ClientUse GlideListV3 to manipulate lists.GlideListProperties - GlobalCreate a list and set list properties. For example, define whether a list has a filter, breadcrumbs, and search. GlideLocale - ScopedGlideLocale provides information about display information for the local instance.GlideMenu (g_menu and g_item) - ClientGlideMenu methods are used in UI Context Menus, in the onShow scripts to customize UI Context Menu items. GlideModalFormV3 - ClientDisplays a form in a GlideModal.GlideModalV3 - ClientProvides methods for displaying a content overlay.GlideNavigationV3 - ClientProvides methods to control and refresh the navigator and main frame.GlideNotificationV3 - ClientYou can show messages over the page content.GlideOAuthClient - Scoped, GlobalUse these methods for requesting and revoking OAuth refresh and access tokens. GlideOAuthClientRequest - Scoped, GlobalUse these methods for handling OAuth client requests. GlideOAuthClientResponse - Scoped, GlobalUse these methods for handling OAuth client responses. GlideOAuthToken - Scoped, GlobalUse the GlideOAuthToken methods for retrieving OAuth access token and information about the access token.GlidePluginManager - ScopedThe scoped GlidePluginManager API provides a method for determining if a plugin has been activated.GlideQueryCondition - GlobalThe GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideQueryCondition - ScopedThe scoped GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideRecord - ClientGlideRecord is used for database operations. The client-side GlideRecord API enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideRecord - GlobalGlideRecord is used for database operations. GlideRecord - ScopedScoped GlideRecord is used for database operations. GlideRecordUtil - GlobalA utility class for working with GlideRecordsGlideRecordV3 - ClientGlideRecord is used for database operations. Client-side GlideRecord enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideSchedule - ScopedThe scoped GlideSchedule API provides methods for performing operations on GlideSchedule objects, such as adding new schedule segments to a schedule, determining if a datetime is within the schedule, or setting the schedule timezone.GlideScriptableInputStream - ScopedA GlideScriptableInputStream object cannot be instantiated directly, but is used as an opaque object which is used to connect an input stream from GlideSysAttachment.getContentStream() with other streaming APIs, such as GlideTextReader, GlideDigest, and XMLDocument2.GlideScriptedProcessor - ScopedServiceNow processors are equivalent to Java servlets. GlideSecureRandomUtil - ScopedThe scoped GlideSecureRandomUtil API provides methods for generating integers, long values, and strings.GlideServletRequest - Scoped The GlideServletRequest API is used in processor scripts.GlideServletResponse - ScopedThe GlideServletResponse API is used in processor scripts.GlideSession - GlobalThe GlideSession API allows you to find information about the current session. GlideSession - ScopedThe scoped GlideSession API provides a way to find information about the current session. GlideSPScriptable - ScopedThe GlideSPScriptable API provides a set of methods for use in Service Portal Widgets.GlideSysAttachment - ScopedThe GlideSysAttachment API provides a way to handle attachments.GlideSysListControl - ScopedThe scoped GlideSysListControl class allows you to determine if the New or Edit buttons are displayed.GlideSystem - GlobalThe GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideSystem - ScopedThe scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideTableHierarchy - ScopedThe Scoped GlideTableHierarchy API provides methods for handling information about table relationships.GlideTextReader - ScopedProvides the ability to read single lines from an input stream. Because an input stream is used, it is not subject to the 5MB attachment size limit.GlideTime - ScopedThe scoped GlideTime class provides methods for performing operations on GlideTime objects, such as instantiating GlideTime objects or working with GlideTime fields.GlideTimeline - GlobalThe GlideTimeline class provides the core implementation for configuring and displaying a Glide Windowing Toolkit Timeline.GlideTimelineItem - GlobalGlideTimelineItem extends the abstract ScheduleItem class to define additional properties that are specific to the time line.GlideUICompatibility - ScopedThe scoped GlideUICompatibility class provides the ability for scoped applications to define their own minimum browser versions. This is done by creating system properties for the scoped application. GlideURI - Scoped, GlobalThe GlideURI class is a utility class for handling the URI parameter. The GlideURI class is available in scoped and global scripts.GlideURLV3 - ClientProvides methods for manipulating a URI.GlideUser - ClientThe GlideUser API provides access to information about the current user and current user roles. Using the GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - ScopedThe scoped GlideUser API provides access to information about the current user and current user roles. Using the scoped GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - GlobalThe GlideUser API provides access to information about the current user and current user roles. HistoryWalker - Scoped, GlobalThe HistoryWalker API uses the audit/history tables to generate a historical version of an existing record. It supports the ability to return a GlideRecord to a previous update count (walked GlideRecord) with the appropriate GlideElements populated. After the walked GlideRecord is retrieved, the API provides the ability to move forward and backward the update numbers navigating through its historical updates.HostnameJS - GlobalFormats host names according to property settings.i18NV3 - ClientProvides methods to get and format translated messages.ICalUtilSNC - GlobalThe ICalUtilSNC API provides functions to generate iCalendar compliant events.ICalUtil - GlobalThe ICalUtil API is an extension of the ICalUtilSNC API.IdentificationEngine - ScopedThe IdentificationEngine uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IdentificationEngineScriptableApi - GlobalThe IdentificationEngineScriptableApi uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IDResult - GlobalA container class for the result of a CI Identifier.IPAddressFixup - GlobalAfter a device has been successfully discovered, ensures that no other device has the same IP address. If any duplicates are found, the IP address field is cleared.IPService - GlobalEncapsulates an IP Service. JavascriptProbe - GlobalProvides methods for using the JavascriptProbe on the MID server.J2js - Global2JS script include allows you to convert java objects to JavaScript objects. JSON - GlobalProvides methods to create JSON objects from a string, and to turn JSON objects into strings.JSONParser - GlobalProvides a JSON parser that does not use the JavaScript eval() function. JSON - ScopedProvides scoped methods to create JSON objects from a string, and to turn JSON objects into strings.JSUtil - GlobalJSUtil is a class of shortcuts for common JavaScript routines.Logger - GlobalInbound email actions can use this JavaScript function to append messages to the email log.LSOFParser - GlobalParses the output of the lsof command: lsof -i4TCP -n -P -F pcnfTMIDServer - GlobalEncapsulates the notion of a MID server. MIDServerAjax - GlobalProvides AJAX functionality for sending a test probe to the MID server.MIDServerCluster - GlobalFinds the MID server clusters for a given MID server and reassigns the jobs if necessary.MIDServerFileSync - GlobalChecks to see if there are any changes to attachments on tables that are instances of MID server synchronized files (ecc_agent_sync_file) and, if so, notifies the MID servers of a change. MIDServerFinder - GlobalFinds a list of MID servers for given IP addresses.MIDServerManage - GlobalAllows you to manage a MID server, by sending messages to start, stop, upgrade, get logs, send test probes, and send system messages.MIDServerSelector - GlobalFinds a MID server based on capabilities and target IP address.MonitorMIDServer - GlobalMonitors MID servers using the heartbeat probe to check for MID servers that are down, sends heartbeat requests, and kills old heartbeat requests.NameValuePairs - GlobalConverts between maps and strings representing the name/value pairs in the map.NetwareHandler API - GlobalImplements an SNMP handler for Netware OS. Notify - GlobalThe Notify API allows you to interact with Notify calls and SMS messages using scripts.NotifyAction - GlobalThe NotifyAction API allows you to define actions to send to a telephony provider.NotifyPhoneNumber - GlobalThe NotifyPhoneNumber API allows you to query information about a Notify phone number.Notify Client - GlobalThe Notify Client API allows you use Notify telephony functionality, such as making and receiving calls, from a web browser.Legacy Notify API - GlobalThe legacy Notify API provides functionality for sending emails, sending SMS messages, and setting up conference calls.openFrameAPI - GlobalOpenFrame is an omni-present frame that communication partners can use to integrate their systems into the ServiceNow platform. OAuthUtil - GlobalThis script include modifies request parameters and parses the token response during runtime.OCRosterSpanApprovalUtil - GlobalThe OCRosterSpanApprovalUtil API for the PTO approval feature.OCRotation - GlobalThe core OCRotation builds a data structure that is used to display the calendar. OCRotationV2 - GlobalOCRotationV2 is an extension of OCRotation, which is used by Fullcalendar.io and the DHTMLX On-Call Calendar. OCRotaICalendarSNC - GlobalThe OCRotaICalendarSNC API provides iCal formatted events for the a specific user's rotation.OCRotaICalendar - GlobalThe OCRotaICalendar API is an extension of the OCRotaICalendarSNC API.OCRotaMember - GlobalThe OCRotaMember API performs maintenance operations on the cmn_rota_member table.OnCallRotation - GlobalUse to manage on-call schedules.OCSeriesEventGenerator - GlobalThe OCSeriesEventGenerator API generates the repeating VEVENTS for a user's iCalendar.OCTimer - GlobalThe OCTimer API provides the ability to track the length of time it takes for a function to complete.OrderGuide - ScopedOrderGuide API enables you to initialize and view an order guide details. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the OrderGuide API.PADomainUtils - GlobalThe PADomainUtils API enables you to copy Performance Analytics configurations between different domains.PAScorecard - ScopedThe PAScorecard API enables you to query information about Performance Analytics scorecards and indicators.PASnapshot - ScopedThe PASnapshot API enables you to query information about Performance Analytics snapshots.ProbeHandlerCim - GlobalConfigures a CIM probe.ProbeHandlerMulti - GlobalProbe handler for MultiProbes. ProbeHandlerSNMP - GlobalDiscovery probe handler for SNMP probes, invoked when an SNMP probe is about to be created.ProbeHandlerWMI - GlobalDiscovery probe handler for WMI probes.Queue - ScopedThe Queue API allows you to retrieve or join a Connect Support chat queue. QuickRanges - GlobalGenerates IP network, range, and address entries from a convenient comma-separated input field using conventional CIDR network notation, hyphenated range entries, or individual IP addresses.RecordToHTML - GlobalA utility class to turn a record into HTML.RenderProperties - GlobalThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RenderProperties - ScopedThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RESTAPIRequest - Scoped, GlobalA RESTAPIRequest object allows you to access scripted REST API request details in scripts.RESTAPIRequestBody - Scoped, GlobalA RESTAPIRequestBody object allows you to access the body content of a scripted REST API request in scripts.RESTAPIResponse - Scoped, GlobalA RESTAPIResponse object allows you to build a RESTful response to a scripted REST API request.RESTAPIResponseStream - Scoped, GlobalA RESTAPIResponseStream object allows you to write directly to the scripted REST API response stream.RESTMessageV2 - Scoped, GlobalThe RESTMessageV2 API allows you to send outbound REST messages using JavaScript. RESTResponseV2 - Scoped, GlobalThe RESTResponseV2 API allows you to use the data returned by an outbound REST message in JavaScript code.RoundingInterval - GlobalHandles all the details of rounding intervals for CPU speed and RAM size.ScriptLoader - ClientProvides the ability to load scripts asynchronously.SerialNumberManager - GlobalManages the serial numbers for discovery devices.ServiceRegistryQuery - GlobalMaps Shazzam service registry query results against a port probe. Child classes provide specifics on mapping.ShazzamLaunch - GlobalHandles the details of launching a Shazzam probe for a given discovery.ShazzamResult - GlobalEncapsulates a Shazzam result.ShazzamScanner - GlobalEncapsulates a Shazzam scanner.SLARepair - GlobalThe SLARepair API first deletes the existing SLAs and then recreates them from each task's history.SLPServiceRegistryQuery - GlobalMaps Shazzam! SLP query results to port probes.SNMPGatherDocParts - GlobalHandles gathering the parts of an SNMP response document for JavaScript SNMP sensors.SNMPNetworkInterfaces - GlobalCreates network interfaces for JavaScript SNMP sensors.SNMPResponse - GlobalWraps an SNMP payload response instance with methods to safely and easily retrieve SNMP singleton fields or tables.SOAPMessageV2 - Scoped, GlobalThe SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript.SOAPResponseV2 - Scoped, GlobalThe SOAPResponseV2 API allows you to use the data returned by an outbound SOAP message in JavaScript code. spAriaUtil - ClientYou can show messages on a screen reader. The spAriaUtil service is an angular service included as part of the Service Portal angular application. The spAriaUtil service is available in the client script block of Service Portal widgets.spModal - ClientThe spModal class provides an alternative way to show alerts, prompts, and confirmation dialogs. The SPModal class is available in Service Portal client scripts.spUtil - ClientUtility methods to perform common functions in a Service Portal widget client script.StandardCredentialsProvider - Scoped, GlobalUse StandardCredentialsProvider API to retrieve credential information. StartDiscovery - GlobalStarts discovery jobs.StateManagementScriptableApi - GlobalProvides a set of methods for manipulating CI operational states and applying CI actions. StopWatch - ClientUse a StopWatch object to measure the duration of operations.SummaryTableWriter - GlobalThe SummaryTableWriter script include enables the creation of summary sets for reports that can be generated with standard queries and trending.TableUtils - GlobalTableUtils is a class of shortcuts for accessing table related information.TemplatePrinter - ScopedScoped TemplatePrinter handles printing from a mail script to the email message. TimelineSpan - GlobalThis class defines a set of properties that describe the characteristics and interactive behavior of an element rendered within a TimelineItem.TaskStateUtil - GlobalThe TaskStateUtil API is in the task state management utility script include and is used for working with task-type table state attributes.Transformer - Scoped, GlobalManipulate time-series data to prepare the data for evaluation and analysis.TransformPart - Scoped, GlobalUse the TransformPart class to specify details of the transform to be done.TransformResult - Scoped, GlobalProvides the result of a transformation run on time-series data.UPSHandler - GlobalHandles SNMP classification and identification for UPSs.UserCriteria - ScopedUserCriteria API enables you to create, modify, or delete user criteria records using scripts. To use this class in a scoped application, use the sn_uc namespace identifier. The User Criteria Scoped API plugin (ID: com.glideapp.user_criteria.scoped.api) should be enabled to access the UserCriteria API.VariablePoolQuestionSetJS - ScopedVariablePoolQuestionSetJS API enables you to use Variable Pool Question Set. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the VariablePoolQuestionSetJS API.VMUtils - GlobalProvides utility functions for discovery and provisioning of virtual machines.WalkWorkflow - GlobalWalks the workflow and gets the list of successors for each activity along with a shortest path order that indicates the activity depth in the workflow.WFActivityHandler - GlobalThe base class for all workflow activities. WindowsOSNameHelper - GlobalHandles the formatting of Windows OS names.Workflow - GlobalWorkflow scripts provide an interface with the workflow engine.Workflow - ScopedThe scoped Workflow API provides methods that can be used in an activity definition script.WorkflowDuration - GlobalThis class calculates the duration (in seconds) based on the variables of a workflow activity. It is an interface between Workflow Timer() and DurationCalculator(). WorkflowModelManager - GlobalThe WorkflowModelManager class provides a way to query the workflow model, to step backwards and forwards between specified wf_history items, and to query the history for activity and transition-specific information.WorkflowModelManagerAjax - GlobalProvides an AjaxProcessor wrapper for the WorkflowModelManager. This class derives from AbstractAjaxProcessor. WorkflowScheduler - GlobalThis code is executed in business rule Set workflow scheduler script on table wf_workflow_schedule.WorkflowTimeline - GlobalGenerates a view that shows a workflow context on the timeline.XMLDocument2 - ScopedXMLDocument2 is a JavaScript Object wrapper for parsing and extracting XML data from an XML string. XMLNode - ScopedThe scoped XMLNode API allows you to query values from XML nodes. XMLNodes are extracted from XMLDocument2 objects, which contain XML strings.XMLNodeIterator - ScopedThe scoped XMLNodeIterator class allows you to iterate through a node of a XML document.XMLUtilJS - GlobalProvides XML utilities for JavaScript to be used with Discovery scripts.
JavaScript API reference Use JavaScript APIs in scripts you write to change the functionality of applications, or when you create new applications. AbstractDBObject - GlobalProvides common methods for classes based on records in the database.AbstractReconciler - GlobalUse this script include as a base class to create your own Discovery reconciler.AbstractScriptProcessor - GlobalBase JavaScript processor class that other JavaScript processors extend.AbstractTimeLineSchedulePage - GlobalA helper class to facilitate working with the data displayed on timelines.ActivityHistoryRecord - Global A data object that is a member of the WorkflowModelManager class; ActivityHistoryRecord methods facilitate interacting with the WorkflowModelManager object.AgentMetrics - GlobalProcesses inbound MID server metrics.APCHandler - GlobalHandles SNMP classification and identification for UPSs, environmental monitors, and PDUs made by APC.ApcPduOutletReconciler - GlobalReconciles outlets for power distribution units.ArrayUtil - GlobalArrayUtil API is a script include with useful functions for working with JavaScript arrays.AssessmentCreation - GlobalThe AssessmentCreation class provides methods that administrators can use to generate assessments and surveys.AutomationException - GlobalProvides generic exception wrapping for automation.cabrillo - Client Cabrillo JS is a client side JavaScript API for accessing capabilities inside ServiceNow native mobile applications.Cabrillo JS constantsThese are the constants used by Cabrillo JS.Cabrillo JS data typesThese are common data types used by Cabrillo JS APIs.cabrillo.attachments - ClientThe name space for Cabrillo JS attachment functions. This enables adding and viewing attachments.cabrillo.camera - ClientCabrillo JS camera functions to provide camera access for bar code scanning.cabrillo.geolocation - ClientCabrillo JS functions to provide access to the device's location services.cabrillo.list - ClientCabrillo JS functions to provide native UI for selecting items from a list.cabrillo.modal - ClientCabrillo JS functions for presenting web content inside of native modals.cabrillo.navigation - ClientCabrillo JS functions for forward and backward navigation. cabrillo.viewLayout - ClientCabrillo JS functions to provide access to native UI elements like buttons and spinners. CatalogJS - ScopedCatalogJS API enables you to use methods to check and retrieve catalog-specific properties. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogJS API.CatItem - ScopedCatItem API enables you to create and modify service catalog items using scripts.CatalogSearch - ScopedCatalogSearch API enables you to search catalog item. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogSearch API.CartJS - ScopedCartJS API enables you to access the shopping cart for a user. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CartJS API.CatalogItemVariable - ScopedCatalogItemVariable API enables you to create and modify service catalog item variables using scripts.CatalogClientScript - ScopedCatalogClientScript API enables you to create, modify, or delete catalog client script records. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the CatalogClientScript API.CatalogItemVariableSet - ScopedCatalogItemVariableSet API enables you to create and modify service catalog item variable sets using scripts.CatalogItemVariableSetM2M - ScopedCatalogItemVariableSetM2M API enables you to create and modify service catalog item variable set many-to-many (M2Ms) using scripts.CatCategory - ScopedCatCategory API enables you to create and modify service catalog categories using scripts.CertificateEncryption - ScopedAPIs available for encrypting certificates in scoped applications.CIUtils - GlobalCIUtils is a utility class for working with configuration items.ChangeCollisionHelper - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflict - GlobalHelper functions found in the Change Management Collision Detector Plugin.ChangeConflictHandler - GlobalHelper functions found in the Change Management Collision Detector Plugin.CIData - GlobalUtility class for working with CI data structures in JavaScript.CIIdentification - GlobalMain class for discovery CI identification.CIIdentifierResult - GlobalGets the result returned by an identifier.CimCIData - GlobalProvides a wrapper for CIM CI data manipulation.CimIDSensor - GlobalPerforms identification for CIM probe results.CimInstanceToken - GlobalRepresents the unique query identity of a CIM instance.CimProbe - GlobalMaintains CIM probe meta data.CimProbeResult - GlobalProcesses CIM probe results.CIRelatedList - GlobalUtility class for working with CI Related lists.ClassifierProbes - GlobalProvides a classifier probe launch facility. Encapsulates an array of probe information records, initialized either from a JavaScript array or the XML serialized version.Client - Scoped, GlobalProvides methods to add data to the MetricBase database, to execute transforms on the MetricBase database, and to receive the results of the transforms.CMDBGroupAPI - ScopedThe CMDBGroupAPI provided methods for performing actions on CMDB groups.CMDBTransformUtil - GlobalThe CMDBTransformUtil class uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized sources when updating the CMDB in onBefore transform map scripts. This class cannot be used in other scripts.CMDBUtil - GlobalThe CMDBUtil API provides utility methods for creating and managing table relationships in the configuration management database (CMDB) and managing CMDB baselines. ConnectActionResponse - GlobalThe ConnectActionResponse API provides a method to create a GlideRecord.ConnectionInfo - Scoped, GlobalUse ConnectionInfo API to get connection attribute information through the connection and credential alias. ConnectionInfoProvider - Scoped, GlobalUse ConnectionInfoProvider API to select connection information through the connection alias. Conversation - ScopedConversation API enables you to create or modify Connect conversations. CriteriaEvaluator - GlobalImplements a general-purpose criteria evaluator. CustomEvent - ClientYou can use CustomEvent API to show qualified embedded help in the right sidebar.Data - Scoped, GlobalA Data object contains the results of transform performed by a sn_clotho.Client.transform() method.DataBuilder - Scoped, GlobalUse the DataBuilder class to create a series of data points for a metric. Use the sn_clotho.Client.put() method to save the values. DateTimeUtils - GlobalDateTimeUtils class is a collection of date/time functions.DurationCalculator - GlobalProvides methods for calculating durations and due dates.ExpenseAllocation - GlobalThe ExpenseAllocation API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating custom expense allocation records (fm_expense_allocation) from scripted expense allocation rules.ExpenseLine - GlobalThe ExpenseLine API is included with the Cost Management Plugin as a script include record. It is used by various cost management processes and can also be used for generating expense line (fm_expense_line) records from your own server-side scripts.ExtractTermsFromAttachment - GlobalExtracts terms from an attachment.FormInfoHeader - GlobalFormInfoHeader allows you to add an HTML message as a form info message.GenericUPSAlarmsReconciler - GlobalConcrete reconciler for generic UPS alarms.GenericUPSBypassReconciler - GlobalConcrete reconciler for generic UPS bypasses.GenericUPSInputsReconciler - GlobalConcrete reconciler for generic UPS inputs.GenericUPSOutputsReconciler - GlobalConcrete reconciler for generic UPS outputs.GlideAggregate - GlobalGlideAggregate enables you to easily create database aggregation queries.GlideAggregate - ScopedGlideAggregate enables you to easily create database aggregation queries.GlideAjax - ClientThe GlideAjax class enables a client script to call server-side code in a script include. GlideAjaxV3 - ClientThe GlideAjaxV3 API provides the ability to asynchronously execute server-side scripts from a client-side script.GlideappCalculationHelper - GlobalThe GlideappCalculationHelper API is a scriptable object that provides methods that add items to an existing request or request the recalculation of the price of a request.GlideCertificateEncryption - GlobalAPIs available for encrypting certificates.GlideConversation - GlobalThe GlideConversation API provides access to information in a Connect message. GlideDate - Scoped The scoped GlideDate class provides methods for performing operations on GlideDate objects, such as instantiating GlideDate objects or working with GlideDate fields. GlideDateTime - GlobalThe GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDateTime - ScopedThe scoped GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields.GlideDBFunctionBuilder - Scoped, GlobalBuild functions to perform SQL operations in the database.GlideDialogWindow - ClientThe GlideDialogWindow API provides methods for displaying a dialog in the current window and frame.GlideDigest - ScopedThe scoped GlideDigest class provides methods for creating a message digest from strings or input streams using MD5, SHA1, or SHA256 hash algorithms. GlideDocumentV3 - ClientThe GlideDocument class provides the ability to search a DOM element, a document, or a JQuery element.GlideDuration - ScopedThe scoped GlideDuration class provides methods for working with spans of time or durations.GlideElement - GlobalThe GlideElement API provides a number of convenient script methods for dealing with fields and their values. GlideElement methods are available for the fields of the current GlideRecord. GlideElement - ScopedThe Scoped GlideElement API provides a number of convenient script methods for dealing with fields and their values. Scoped GlideElement methods are available for the fields of the current GlideRecord. GlideElementDescriptor - ScopedThe scoped GlideElementDescriptor API provides information about individual fields.GlideEmailOutbound - ScopedThe scoped GlideEmailOutbound class implements the email object for scoped applications. You can use the GlideEmailOutbound methods with the email global object available in mail scripts. The email object behaves identically for global and scoped applications.GlideEncrypter - GlobalGlideEncrypter provides methods to encrypt and decrypt strings using the Triple DES algorithm.GlideScopedEvaluator - GlobalThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideScopedEvaluator - ScopedThe GlideScopedEvaluator API allows you to evaluate scripts in a GlideRecord field from both scoped and global server scripts. GlideExcelParser - Scoped, GlobalYou can parse .xlsx formatted Excel files.GlideFilter - ScopedThe Scoped GlideFilter API provides a method to determine if a record meets a specified set of requirements. GlideForm - ClientThe GlideForm API provides methods to customize forms. GlideForm.js is the JavaScript class containing the methods. The global object g_form is used to access GlideForm methods. GlideForm methods are only used on the client. Mobile GlideForm (g_form) - ClientMobile GlideForm (g_form) methods enable you to work with forms on the mobile platform.GlideFormScratchpad - Scoped, ClientThe scoped GlideFormScratchpad class implements the g_scratchpad object for scoped applications. GlideGuidV3 - ClientYou can create a globally unique identifier.GlideImpersonate - GlobalThe global GlideImpersonate API enables administrators to pose as another authenticated user for testing purposes.GlideList2 (g_list) - ClientGlideList2 is a JavaScript class used to customize (v2) lists.GlideListV3 (g_list) - ClientUse GlideListV3 to manipulate lists.GlideListProperties - GlobalCreate a list and set list properties. For example, define whether a list has a filter, breadcrumbs, and search. GlideLocale - ScopedGlideLocale provides information about display information for the local instance.GlideMenu (g_menu and g_item) - ClientGlideMenu methods are used in UI Context Menus, in the onShow scripts to customize UI Context Menu items. GlideModalFormV3 - ClientDisplays a form in a GlideModal.GlideModalV3 - ClientProvides methods for displaying a content overlay.GlideNavigationV3 - ClientProvides methods to control and refresh the navigator and main frame.GlideNotificationV3 - ClientYou can show messages over the page content.GlideOAuthClient - Scoped, GlobalUse these methods for requesting and revoking OAuth refresh and access tokens. GlideOAuthClientRequest - Scoped, GlobalUse these methods for handling OAuth client requests. GlideOAuthClientResponse - Scoped, GlobalUse these methods for handling OAuth client responses. GlideOAuthToken - Scoped, GlobalUse the GlideOAuthToken methods for retrieving OAuth access token and information about the access token.GlidePluginManager - ScopedThe scoped GlidePluginManager API provides a method for determining if a plugin has been activated.GlideQueryCondition - GlobalThe GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideQueryCondition - ScopedThe scoped GlideQueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.GlideRecord - ClientGlideRecord is used for database operations. The client-side GlideRecord API enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideRecord - GlobalGlideRecord is used for database operations. GlideRecord - ScopedScoped GlideRecord is used for database operations. GlideRecordUtil - GlobalA utility class for working with GlideRecordsGlideRecordV3 - ClientGlideRecord is used for database operations. Client-side GlideRecord enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts.GlideSchedule - ScopedThe scoped GlideSchedule API provides methods for performing operations on GlideSchedule objects, such as adding new schedule segments to a schedule, determining if a datetime is within the schedule, or setting the schedule timezone.GlideScriptableInputStream - ScopedA GlideScriptableInputStream object cannot be instantiated directly, but is used as an opaque object which is used to connect an input stream from GlideSysAttachment.getContentStream() with other streaming APIs, such as GlideTextReader, GlideDigest, and XMLDocument2.GlideScriptedProcessor - ScopedServiceNow processors are equivalent to Java servlets. GlideSecureRandomUtil - ScopedThe scoped GlideSecureRandomUtil API provides methods for generating integers, long values, and strings.GlideServletRequest - Scoped The GlideServletRequest API is used in processor scripts.GlideServletResponse - ScopedThe GlideServletResponse API is used in processor scripts.GlideSession - GlobalThe GlideSession API allows you to find information about the current session. GlideSession - ScopedThe scoped GlideSession API provides a way to find information about the current session. GlideSPScriptable - ScopedThe GlideSPScriptable API provides a set of methods for use in Service Portal Widgets.GlideSysAttachment - ScopedThe GlideSysAttachment API provides a way to handle attachments.GlideSysListControl - ScopedThe scoped GlideSysListControl class allows you to determine if the New or Edit buttons are displayed.GlideSystem - GlobalThe GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideSystem - ScopedThe scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc. GlideTableHierarchy - ScopedThe Scoped GlideTableHierarchy API provides methods for handling information about table relationships.GlideTextReader - ScopedProvides the ability to read single lines from an input stream. Because an input stream is used, it is not subject to the 5MB attachment size limit.GlideTime - ScopedThe scoped GlideTime class provides methods for performing operations on GlideTime objects, such as instantiating GlideTime objects or working with GlideTime fields.GlideTimeline - GlobalThe GlideTimeline class provides the core implementation for configuring and displaying a Glide Windowing Toolkit Timeline.GlideTimelineItem - GlobalGlideTimelineItem extends the abstract ScheduleItem class to define additional properties that are specific to the time line.GlideUICompatibility - ScopedThe scoped GlideUICompatibility class provides the ability for scoped applications to define their own minimum browser versions. This is done by creating system properties for the scoped application. GlideURI - Scoped, GlobalThe GlideURI class is a utility class for handling the URI parameter. The GlideURI class is available in scoped and global scripts.GlideURLV3 - ClientProvides methods for manipulating a URI.GlideUser - ClientThe GlideUser API provides access to information about the current user and current user roles. Using the GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - ScopedThe scoped GlideUser API provides access to information about the current user and current user roles. Using the scoped GlideUser API avoids the need to use the slower GlideRecord queries to get user information.GlideUser - GlobalThe GlideUser API provides access to information about the current user and current user roles. HistoryWalker - Scoped, GlobalThe HistoryWalker API uses the audit/history tables to generate a historical version of an existing record. It supports the ability to return a GlideRecord to a previous update count (walked GlideRecord) with the appropriate GlideElements populated. After the walked GlideRecord is retrieved, the API provides the ability to move forward and backward the update numbers navigating through its historical updates.HostnameJS - GlobalFormats host names according to property settings.i18NV3 - ClientProvides methods to get and format translated messages.ICalUtilSNC - GlobalThe ICalUtilSNC API provides functions to generate iCalendar compliant events.ICalUtil - GlobalThe ICalUtil API is an extension of the ICalUtilSNC API.IdentificationEngine - ScopedThe IdentificationEngine uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IdentificationEngineScriptableApi - GlobalThe IdentificationEngineScriptableApi uses the Identification and Reconciliation framework to minimize creation of duplicate CIs and to reconcile CI attributes by only accepting information from authorized data sources when updating the CMDB. IDResult - GlobalA container class for the result of a CI Identifier.IPAddressFixup - GlobalAfter a device has been successfully discovered, ensures that no other device has the same IP address. If any duplicates are found, the IP address field is cleared.IPService - GlobalEncapsulates an IP Service. JavascriptProbe - GlobalProvides methods for using the JavascriptProbe on the MID server.J2js - Global2JS script include allows you to convert java objects to JavaScript objects. JSON - GlobalProvides methods to create JSON objects from a string, and to turn JSON objects into strings.JSONParser - GlobalProvides a JSON parser that does not use the JavaScript eval() function. JSON - ScopedProvides scoped methods to create JSON objects from a string, and to turn JSON objects into strings.JSUtil - GlobalJSUtil is a class of shortcuts for common JavaScript routines.Logger - GlobalInbound email actions can use this JavaScript function to append messages to the email log.LSOFParser - GlobalParses the output of the lsof command: lsof -i4TCP -n -P -F pcnfTMIDServer - GlobalEncapsulates the notion of a MID server. MIDServerAjax - GlobalProvides AJAX functionality for sending a test probe to the MID server.MIDServerCluster - GlobalFinds the MID server clusters for a given MID server and reassigns the jobs if necessary.MIDServerFileSync - GlobalChecks to see if there are any changes to attachments on tables that are instances of MID server synchronized files (ecc_agent_sync_file) and, if so, notifies the MID servers of a change. MIDServerFinder - GlobalFinds a list of MID servers for given IP addresses.MIDServerManage - GlobalAllows you to manage a MID server, by sending messages to start, stop, upgrade, get logs, send test probes, and send system messages.MIDServerSelector - GlobalFinds a MID server based on capabilities and target IP address.MonitorMIDServer - GlobalMonitors MID servers using the heartbeat probe to check for MID servers that are down, sends heartbeat requests, and kills old heartbeat requests.NameValuePairs - GlobalConverts between maps and strings representing the name/value pairs in the map.NetwareHandler API - GlobalImplements an SNMP handler for Netware OS. Notify - GlobalThe Notify API allows you to interact with Notify calls and SMS messages using scripts.NotifyAction - GlobalThe NotifyAction API allows you to define actions to send to a telephony provider.NotifyPhoneNumber - GlobalThe NotifyPhoneNumber API allows you to query information about a Notify phone number.Notify Client - GlobalThe Notify Client API allows you use Notify telephony functionality, such as making and receiving calls, from a web browser.Legacy Notify API - GlobalThe legacy Notify API provides functionality for sending emails, sending SMS messages, and setting up conference calls.openFrameAPI - GlobalOpenFrame is an omni-present frame that communication partners can use to integrate their systems into the ServiceNow platform. OAuthUtil - GlobalThis script include modifies request parameters and parses the token response during runtime.OCRosterSpanApprovalUtil - GlobalThe OCRosterSpanApprovalUtil API for the PTO approval feature.OCRotation - GlobalThe core OCRotation builds a data structure that is used to display the calendar. OCRotationV2 - GlobalOCRotationV2 is an extension of OCRotation, which is used by Fullcalendar.io and the DHTMLX On-Call Calendar. OCRotaICalendarSNC - GlobalThe OCRotaICalendarSNC API provides iCal formatted events for the a specific user's rotation.OCRotaICalendar - GlobalThe OCRotaICalendar API is an extension of the OCRotaICalendarSNC API.OCRotaMember - GlobalThe OCRotaMember API performs maintenance operations on the cmn_rota_member table.OnCallRotation - GlobalUse to manage on-call schedules.OCSeriesEventGenerator - GlobalThe OCSeriesEventGenerator API generates the repeating VEVENTS for a user's iCalendar.OCTimer - GlobalThe OCTimer API provides the ability to track the length of time it takes for a function to complete.OrderGuide - ScopedOrderGuide API enables you to initialize and view an order guide details. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the OrderGuide API.PADomainUtils - GlobalThe PADomainUtils API enables you to copy Performance Analytics configurations between different domains.PAScorecard - ScopedThe PAScorecard API enables you to query information about Performance Analytics scorecards and indicators.PASnapshot - ScopedThe PASnapshot API enables you to query information about Performance Analytics snapshots.ProbeHandlerCim - GlobalConfigures a CIM probe.ProbeHandlerMulti - GlobalProbe handler for MultiProbes. ProbeHandlerSNMP - GlobalDiscovery probe handler for SNMP probes, invoked when an SNMP probe is about to be created.ProbeHandlerWMI - GlobalDiscovery probe handler for WMI probes.Queue - ScopedThe Queue API allows you to retrieve or join a Connect Support chat queue. QuickRanges - GlobalGenerates IP network, range, and address entries from a convenient comma-separated input field using conventional CIDR network notation, hyphenated range entries, or individual IP addresses.RecordToHTML - GlobalA utility class to turn a record into HTML.RenderProperties - GlobalThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RenderProperties - ScopedThe RenderProperties API provides methods about the current page and is available in Jelly scripts and in UI-action conditions and scripts. RESTAPIRequest - Scoped, GlobalA RESTAPIRequest object allows you to access scripted REST API request details in scripts.RESTAPIRequestBody - Scoped, GlobalA RESTAPIRequestBody object allows you to access the body content of a scripted REST API request in scripts.RESTAPIResponse - Scoped, GlobalA RESTAPIResponse object allows you to build a RESTful response to a scripted REST API request.RESTAPIResponseStream - Scoped, GlobalA RESTAPIResponseStream object allows you to write directly to the scripted REST API response stream.RESTMessageV2 - Scoped, GlobalThe RESTMessageV2 API allows you to send outbound REST messages using JavaScript. RESTResponseV2 - Scoped, GlobalThe RESTResponseV2 API allows you to use the data returned by an outbound REST message in JavaScript code.RoundingInterval - GlobalHandles all the details of rounding intervals for CPU speed and RAM size.ScriptLoader - ClientProvides the ability to load scripts asynchronously.SerialNumberManager - GlobalManages the serial numbers for discovery devices.ServiceRegistryQuery - GlobalMaps Shazzam service registry query results against a port probe. Child classes provide specifics on mapping.ShazzamLaunch - GlobalHandles the details of launching a Shazzam probe for a given discovery.ShazzamResult - GlobalEncapsulates a Shazzam result.ShazzamScanner - GlobalEncapsulates a Shazzam scanner.SLARepair - GlobalThe SLARepair API first deletes the existing SLAs and then recreates them from each task's history.SLPServiceRegistryQuery - GlobalMaps Shazzam! SLP query results to port probes.SNMPGatherDocParts - GlobalHandles gathering the parts of an SNMP response document for JavaScript SNMP sensors.SNMPNetworkInterfaces - GlobalCreates network interfaces for JavaScript SNMP sensors.SNMPResponse - GlobalWraps an SNMP payload response instance with methods to safely and easily retrieve SNMP singleton fields or tables.SOAPMessageV2 - Scoped, GlobalThe SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript.SOAPResponseV2 - Scoped, GlobalThe SOAPResponseV2 API allows you to use the data returned by an outbound SOAP message in JavaScript code. spAriaUtil - ClientYou can show messages on a screen reader. The spAriaUtil service is an angular service included as part of the Service Portal angular application. The spAriaUtil service is available in the client script block of Service Portal widgets.spModal - ClientThe spModal class provides an alternative way to show alerts, prompts, and confirmation dialogs. The SPModal class is available in Service Portal client scripts.spUtil - ClientUtility methods to perform common functions in a Service Portal widget client script.StandardCredentialsProvider - Scoped, GlobalUse StandardCredentialsProvider API to retrieve credential information. StartDiscovery - GlobalStarts discovery jobs.StateManagementScriptableApi - GlobalProvides a set of methods for manipulating CI operational states and applying CI actions. StopWatch - ClientUse a StopWatch object to measure the duration of operations.SummaryTableWriter - GlobalThe SummaryTableWriter script include enables the creation of summary sets for reports that can be generated with standard queries and trending.TableUtils - GlobalTableUtils is a class of shortcuts for accessing table related information.TemplatePrinter - ScopedScoped TemplatePrinter handles printing from a mail script to the email message. TimelineSpan - GlobalThis class defines a set of properties that describe the characteristics and interactive behavior of an element rendered within a TimelineItem.TaskStateUtil - GlobalThe TaskStateUtil API is in the task state management utility script include and is used for working with task-type table state attributes.Transformer - Scoped, GlobalManipulate time-series data to prepare the data for evaluation and analysis.TransformPart - Scoped, GlobalUse the TransformPart class to specify details of the transform to be done.TransformResult - Scoped, GlobalProvides the result of a transformation run on time-series data.UPSHandler - GlobalHandles SNMP classification and identification for UPSs.UserCriteria - ScopedUserCriteria API enables you to create, modify, or delete user criteria records using scripts. To use this class in a scoped application, use the sn_uc namespace identifier. The User Criteria Scoped API plugin (ID: com.glideapp.user_criteria.scoped.api) should be enabled to access the UserCriteria API.VariablePoolQuestionSetJS - ScopedVariablePoolQuestionSetJS API enables you to use Variable Pool Question Set. To use this class in a scoped application, use the sn_sc namespace identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api) that is enabled by default is required to access the VariablePoolQuestionSetJS API.VMUtils - GlobalProvides utility functions for discovery and provisioning of virtual machines.WalkWorkflow - GlobalWalks the workflow and gets the list of successors for each activity along with a shortest path order that indicates the activity depth in the workflow.WFActivityHandler - GlobalThe base class for all workflow activities. WindowsOSNameHelper - GlobalHandles the formatting of Windows OS names.Workflow - GlobalWorkflow scripts provide an interface with the workflow engine.Workflow - ScopedThe scoped Workflow API provides methods that can be used in an activity definition script.WorkflowDuration - GlobalThis class calculates the duration (in seconds) based on the variables of a workflow activity. It is an interface between Workflow Timer() and DurationCalculator(). WorkflowModelManager - GlobalThe WorkflowModelManager class provides a way to query the workflow model, to step backwards and forwards between specified wf_history items, and to query the history for activity and transition-specific information.WorkflowModelManagerAjax - GlobalProvides an AjaxProcessor wrapper for the WorkflowModelManager. This class derives from AbstractAjaxProcessor. WorkflowScheduler - GlobalThis code is executed in business rule Set workflow scheduler script on table wf_workflow_schedule.WorkflowTimeline - GlobalGenerates a view that shows a workflow context on the timeline.XMLDocument2 - ScopedXMLDocument2 is a JavaScript Object wrapper for parsing and extracting XML data from an XML string. XMLNode - ScopedThe scoped XMLNode API allows you to query values from XML nodes. XMLNodes are extracted from XMLDocument2 objects, which contain XML strings.XMLNodeIterator - ScopedThe scoped XMLNodeIterator class allows you to iterate through a node of a XML document.XMLUtilJS - GlobalProvides XML utilities for JavaScript to be used with Discovery scripts.