• Call us: +91 9501707741
  • tutorialzdiary@gmail.com


ServiceNOW Training

ServiceNow Training Course
ServiceNOW Admin Training Course
ServiceNOW Development Training Course

ServiceNOW Hands on

ServiceNOW : How to get personal ServiceNOW instance to start exploring
ServiceNOW : List & Forms Administration
ServiceNOW : Reporting Module
ServiceNOW : Scheduling and Publishing Reports
ServiceNOW : Scripts & APIs
ServiceNOW : Workflows
ServiceNOW : Service Catalog Module
ServiceNOW : Incident Management
ServiceNOW : Change Management
ServiceNOW : Configuration Management
ServiceNOW: Business Rules & basic functions
ServiceNOW: Business Rule- Sample Scripts
ServiceNOW: Client Script-Sample Scripts
ServiceNOW : Knowledge Management
ServiceNOW: Client Script & basic functions
ServiceNOW : Changes in Incident,Change & Service Catalog Module in Helsinki(latest version of ServiceNOW)
ServiceNOW : Reference Qualifier

ServiceNOW Interview Questions and Answers

Part 1 : CMDB
Part 3: SLA
Part 4 : Scripts
Part 5: Table & Data Dictionary
Part 6: ACL
Part 7: Workflow
Part 8: Service Catalog

ServiceNOW : Scripts & APIs

Scripts can automate processes, add functionality, integrate ServiceNow with an outside application and more.

APIs  or 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. 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.


1.Client Side : Scripts which run on browser or client side.

2. Server Side : Scripts which run on server side.

There are various types of API in ServiceNow which are discussed below.

  • Business Rules : Runs on server side. It runs when a database action occurs (query, insert, update or delete).Before or after the database action is performed (runs as part of the database operation). Asynchronously (at some point after the database operation). On display (when displaying the data in a form)
    Business Rule

    Business Rule

  • Client Script : Runs on client side.It is u sed for making changes to the appearance of forms, displaying different fields based on values that are entered or other custom display options. onLoad means the Client Script runs when the form or page is loaded. onChange means the Client Script runs when something specific gets changed AND also when the form or page loads. onSubmit means the Client Script runs when the form is submitted.
    Client Script

    Client Script

  • Script Include : Runs on server side. Contains scripts which can be functions or classes. These scripts run only when called by other scripts (often Business Rules).Any server script which is complicated or reusable should be a Script Include (especially complicated Business Rules).
  • UI Page : Can run in client & server side both. Used to create and display pages, forms, dialogs, lists and other UI components. Can be displayed on a standalone basis, or called as a usable component, as part of a larger page.
  • UI Policy : Can run in client & server side both. Defines the behavior and visibility of fields on a form. Field can be made read only, mandatory or visible.
    UI Policy

    UI Policy

  • UI Script : Runs on Client Side . Contains client scripts stored for re-use. Only used when called from other scripts.
  • UI Macro : Contains modular, reusable components that can contain Jelly and are called by UI Pages. They also contain different types of scripts and may be called multiple times on the same page.
  • UI Action : Can run in client & server side both. Creates the ability to choose a specific action such as clicking a button or a link. UI Actions put these items on forms and lists: buttons, links, context menu items & list choices.
  • Transform Map : Runs in server side. It is used for importing data. It defines mapping relationships between tables. It can use Business Rules, other scripts and/or other options to import that data.
  • Access Control : Runs on server side. Determines whether access will be granted for a specified operation to a specific entity. type of entity being secured
    • operation being secured
    • unique identifier describing the object
  • Ajax Script : Runs on both client & server side. Enables the client to get data from the server to dynamically incorporate into a page without reloading the whole page.Ajax Client Scripts request that information be returned, or that action be taken, or sometimes both.Ajax Server Scripts fulfill Ajax Client Script requests
  • Catalog UI policy : Can run on both client & server side .Defines the display of a variable set or a catalog item (from the service catalog).


  1. Use UI Policies rather than Client Scripts whenever possible. Because UI Policies are always attached to one table. And UI Policies often have a condition which must be true in order for them to run


  1. Restrict List Editing
  2. Minimize Server Lookup
  3. Use UI policy instead of Client Scripts
  4. Use client scriots to validate data
  5. Avoid global client scripts
  6. Avoid DOM Manipulation
  7. Enclose code in functions
  8. Run only necessary scripts
  9. Add the isLoading check in Onchange client scripts
  10. Add the newValue check
  11. Bury the glideajax call



Leave a reply

Your email address will not be published. Required fields are marked *

Training Enquiry