Configuring mobile scripts

task brazil Updated Oct 28, 2026 1 min read mobile-scripts-config.md
Raw file servicenow.com

Learn how to use mobile scripts and to configure within the Mobile script [sys_sg_mobile_script] table.

Before you begin

Role required: mobile_admin

Note: To enable mobile scripting for button conditions, you must enable the option in the button table. For more information, see Button condition support enablement

.

Procedure

  1. Navigate to All > sys_sg_mobile_script.list.

    The Mobile script list displays.

  2. Select New to create a mobile script record.

  3. On the form, fill in the required fields.

    Field Description
    Name Unique name of the mobile script, used as the display field. This name is the class name, so it can use only letters, numbers, and underscores, and it can’t start with a number.
    API Name A read-only, automatically generated name. The API name combines the scope and the name, separated by a period (for example, global.my_script). If no scope is set, the scope defaults to global.
    Description Free-form description of the mobile script you’re creating.
    Active Define whether this mobile script should be active not. The default value is <true>.
    Script The JavaScript source executed on the device. For script examples, see Mobile Scripting API reference.
    Script dependencies A read-only automatically generated list of the API names this script calls. It lists the API names this script calls, and any other scripts that are downloaded for this script to work end to end.
  4. In the Name field, add a unique name for the Mobile script.

  5. Select Turn on ECMAScript 2021 (ES12) mode if you want to use ES2021 syntax and feature.

  6. Select Submit.

Parent Topic:Mobile scripting in offline

Search documentation
Search document titles and file paths on the brazil branch