create_script_include
Create a ServiceNow script include by supplying a name and class body, with options for scope, access, active state, and GlideAjax client-callability.
Instructions
Create a new script include (requires SCRIPTING_ENABLED=true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script include name | |
| scope | No | Target application scope: a sys_scope sys_id, or "global" for the global scope. Default: your current application. Overriding scope needs cross-scope create rights. | |
| access | No | "public" or "package_private" (default: "public") | |
| active | No | Whether to activate (default: true) | |
| script | Yes | Script body (class definition). ServiceNow supports ES2021. | |
| api_name | No | API name used to call this from other scripts | |
| client_callable | No | Client callable, for GlideAjax use (default: false) |