Loading

Script in ServiceNow

From ServiceNow Wiki
Home > Script > Script in ServiceNow
Jump to: navigation, search

Overview

Monitor small.png Use scripts to extend your instance beyond standard configurations. With scripts, you may automate processes, add functionality, integrate ServiceNow with an outside application and more. Before using scripts, review Ways to Customize Without Scripting.

APIs (Application Programming Interfaces) provide classes and methods that you can use in scripts to define functionality. ServiceNow provides APIs as JavaScript classes, web services, and other points of connection for integrations. Note that you cannot access commonly used JavaScript objects (such as DOM or Window). Jelly scripts are also used in some modules. Jelly is used to turn XML into HTML and may include both client-side and server-side scripts.

This category describes internal scripts, which change the appearance or behavior of ServiceNow by running scripts inside the platform. These scripts may be server-side (run on the server or database), client-side (run in the user's browser) or on the MID server. Use this category to configure internal scripts and to reference APIs to use in these scripts. To integrate with outside applications, see Integrations.

General Scripting

Client Scripting

Review general information, procedures, and contexts for scripting in ServiceNow.

Differences Among Scripts
Glide Class Overview
Syntax Editor
[more]

Configure scripts that run on the client (web browser).

Client Scripts
Client Script Access to Variable Fields on Task Records
Client Script Best Practices
[more]

Server Scripting

Useful Scripts

Configure scripts that run on the server or the database.

Script Actions
Reference Qualifiers
Installation Exits
[more]

Reference example scripts that have been used in specific instances.

Useful Task Scripts
Useful Form Scripts
Useful User Scripts
[More]

Client API Reference

Server API Reference

Reference objects and methods to use in client-side scripts.

GlideDialogWindow
GlideForm (g_form)
GlideList2 (g_list)
[more]

Reference objects and methods to use in server-side scripts.

CMDBUtil
ExpenseLine
GlideAggregate
[more]

Debugging

Track down errors to get the desired result from a script.

Syntax Editor
Using the Syntax Editor
Script Syntax Error Checking
JavaScript Debugger
Field Watcher
Debugging Business Rules
Business Rule Error Messages
Debugging Tools Best Practices

Was this article helpful?
Yes, I found what I needed
No, I need more assistance
Views
Personal tools