---
sourceDocument: Brazil API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/api-reference

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Explore

# Exploring scripting {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Learn how to use scripts to extend your instance beyond standard configurations. With scripts, you can automate processes, add functionality, integrate your instance with an outside application and more.

ServiceNow JavaScript APIs enable you to perform database operations without writing SQL queries, display UI pages, define UI actions, and more. Scripts can be server-side (run on the server or database),
client-side (run in the user's browser), or run on the MID Server.  
Note:  
Scripts can't contain [reserved words](https://www.w3schools.com/js/js_reserved.asp).

## Server-side scripts {#c_Script__section_fjk_zvc_vhb}

Perform database operations. For example, use a server-side script to update a record.
Create a script in a scoped application or in the global scope. Each execution context
includes a set of available APIs.  

Scoped environment

:   Use scoped APIs when scripting in a scoped application. Scoped Glide APIs don't include all the methods included in the global Glide APIs, and you can't call a global Glide API in a scoped
    application. To learn more about application scopes, see [Application scope](https://www.servicenow.com/docs/access?context=c_ApplicationScope&version=brazil&pubname=brazil-application-development&ft:locale=en-US).

    {#c_Script__p_txv_qcp_pjc}

Global environment
:   The global scope is a special application scope that identifies applications developed before application scoping, or applications intended to be accessible to all other global applications. Use global APIs when
    scripting in the global scope.

To learn more about server-side scripting, see [Writing server-side scripts](https://www.servicenow.com/docs/7pvilIaUyaI8q6kN1C2VBg "Write scripts that run JavaScript on the application server to automate business processes, perform secure data operations, integrate with external systems, and more.").

## Client-side scripts {#c_Script__section_btf_1wc_vhb}

Make changes to the appearance of forms, display different fields based on values that are entered, or change other custom display options. Client scripts allow the system to run JavaScript on the client (web browser) when
client-based events occur, such as when a form loads, after form submission, or when a field changes value.

Client scripts can also be called by other scripts or modules, including UI policies. To learn more about client-side scripting, see [Writing client-side scripts](https://www.servicenow.com/docs/5UqU~6Y30wqRBOlV6kSIgQ "Write scripts that run JavaScript on the client (web browser) when client-based events occur, such as when a form loads, after form submission, or when a field changes value.").
* **[Available script types](https://www.servicenow.com/docs/lEG0rBQufus3DOWSpsnrrQ)**   
  Scripts can be used in many places. The most important detail is whether the script runs on the client or the server.
* **[Execution order of scripts and engines](https://www.servicenow.com/docs/Iq5nWgYNR_e4M4X7VBTCSg)**   
  Scripts, assignment rules, business rules, workflows, escalations, and engines all take effect in relation to a database operation, such as insert or update. In many cases, the order of these events is important.
* **[Script evaluation of fields by data type](https://www.servicenow.com/docs/5VKUmo0bvoYuWbxxa3YWZw)**   
  Script fields evaluate data based on the field type of the input.
* **[Scripting alert, info, and error messages](https://www.servicenow.com/docs/P4f2YDrzDFS7FOxIZJahng)**   
  You can send messages to users as alerts, informational messages, or error messages.
* **[Glide platform stack](https://www.servicenow.com/docs/Aewb1xtNp~hRZLIF7pT5Hw)**   
  Glide is an extensible Web 2.0 development platform written in Java that facilitates rapid development of forms-based workflow applications (work orders, trouble ticketing, and project management, for example).
* **[JavaScript syntax editor](https://www.servicenow.com/docs/7wsFXT1hQWtKC7uhjEZsAA)**   
  The JavaScript syntax editor provides support for editing JavaScript scripts.

**Related concepts**   

* [Server API reference](https://www.servicenow.com/docs/iOT1N0LGPaVO16cusc_QWg "Use server APIs in scripts to change the functionality of applications, or when you create new applications.")
* [Client API reference](https://www.servicenow.com/docs/MfK8Ri0DpC4LXR_6fQRS~A "Use client-side JavaScript APIs to control aspects of how ServiceNow AI Platform is displayed and functions within the web browser. This reference lists available classes and methods along with parameters, descriptions, and examples to help control the end-user experience.")

