Configuring mobile scripts
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
-
Navigate to All > sys_sg_mobile_script.list.
The Mobile script list displays.
-
Select New to create a mobile script record.
-
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.Select Turn on ECMAScript 2021 (ES12) mode, if you want to use ES2021 syntax and capabilities. |
|
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. |
Parent Topic:Mobile scripting in offline
---
title: Configuring mobile scripts
description: Learn how to use mobile scripts and to configure within the Mobile script \[sys\_sg\_mobile\_script\] table.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/mobile/mobile-scripts-config.html
release: brazil
topic_type: task
last_updated: "2026-10-28"
reading_time_minutes: 1
breadcrumb: [Mobile scripting in offline, Offline mode, Before implementation, Configuration detail, Configuring the Mobile Platform, Mobile Platform]
---
# Configuring mobile scripts
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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/mobile/button-config-mobile-script.md)
.
## 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.
<table id="table_cqp_5jq_clc"><thead><tr><th>
Field
</th><th>
Description
</th></tr></thead><tbody><tr><td>
Name
</td><td>
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.
</td></tr><tr><td>
API Name
</td><td>
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.
</td></tr><tr><td>
Description
</td><td>
Free-form description of the mobile script you’re creating.
</td></tr><tr><td>
Active
</td><td>
Define whether this mobile script should be active not. The default value is <true>.
</td></tr><tr><td>
Script
</td><td>
The JavaScript source executed on the device. For script examples, see [Mobile Scripting API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/api-mobile-scripting.md).Select **Turn on ECMAScript 2021 \(ES12\) mode**, if you want to use ES2021 syntax and capabilities.
</td></tr><tr><td>
Script dependencies
</td><td>
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.
</td></tr></tbody>
</table>4. Select **Submit**.
**Parent Topic:**[Mobile scripting in offline](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/mobile/mobile-script-concept.md)
| title | Configuring mobile scripts |
| description | Learn how to use mobile scripts and to configure within the Mobile script \[sys\_sg\_mobile\_script\] table. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/mobile/mobile-scripts-config.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-10-28 |
| reading_time_minutes | 1 |
| breadcrumb | Mobile scripting in offlineOffline modeBefore implementationConfiguration detailConfiguring the Mobile PlatformMobile Platform |