| name | servicenow-sdk-docs |
| skill_type | skill |
| description | A comprehensive, self-contained collection of ServiceNow SDK (Fluent API) examples and core documentation. Use this when the agent needs to reference how to use the ServiceNow SDK for various components like Tables, REST APIs, UI Actions, Script Includes, etc. All source code is bundled within the skill for portability. |
| license | MIT |
| tags | ["servicenow","sdk","fluent-api","examples","typescript","reference","self-contained"] |
| metadata | {"author":"Antigravity","version":"0.2.1"} |
ServiceNow SDK Documentation (Self-Contained)
ServiceNow SDK
The ServiceNow IDE and ServiceNow SDK support developing applications in source code with ServiceNow Fluent, creating JavaScript modules, and using third-party libraries. ServiceNow Fluent is a domain-specific programming language for creating application metadata in code.
This respository currently does not contain the source code for the SDK
Support, Questions, and Announcements
Visit the discussions section!
Links
NPM Package
Documentation
Release Notes
Community Forum
SDK Examples
ServiceNow SDK Samples
This repository contains sample code illustrating the [ServiceNow SDK](https://docs.servicenow.com/csh?topicname=servicenow-sdk.html&version=latest) and Fluent language. You can read, play with or adapt from these samples to create your own application.
## Prerequisites
- [node](https://nodejs.org/en/) v20+
- [pnpm](https://pnpm.io/) v9+
## Usage
- `git clone https://github.com/ServiceNow/sdk-examples`
- `pnpm install` to install all dependencies on samples (optional can run individually)
- `code ` to open one of the sample projects, e.g. hello-world-sample
- `pnpm run build` to build any of the sample projects if desired
## Samples
| Sample Name | API & Contribution |
| ------------------------------------------------------------- | ------------------------------ |
| [ACL](acl-sample/README.md) | ACL example |
| [Application Menu](applicationmenu-sample/README.md) | Application Menu example |
| [Business Rule](businessrule-sample/README.md) | Business Rule example |
| [Client Script](clientscript-sample/README.md) | Client Script example |
| [Dependencies](dependencies-sample/README.md) | Use table dependencies example |
| [Hello World](hello-world-sample/README.md) | Basic sample application |
| [List](list-sample/README.md) | List example |
| [Scripted Rest API](restapi-sample/README.md) | RestApi simple example |
| [Cross-Scope Module](sys_module-sample/README.md) | How to call module cross-scope |
| [Record](record-sample/README.md) | Record example |
| [Tables](table-sample/README.md) | Tables API sample |
| [Automated Test Framework](test-atf-sample/README.md) | ATF test sample |
| [React UI Page Typescript](react-ui-page-ts-sample/README.md) | React Typescript sample |
| [Service Portal](service-portal-sample/README.md) | Service Portal sample |
| [UI Action](uiaction-sample/README.md) | UiAction sample |
| [Script Action](scriptaction-sample/README.md) | ScriptAction sample |
| [Script Include](script-include-sample/README.md) | ScriptInclude sample |
| [UI Page](uipage-sample/README.md) | UiPage sample |
| [Service Catalog](service-catalog-sample/README.md) | Service Catalog sample |
| [Flow](flow-sample/README.md) | Flow sample |
| [SolidJS UI Page](solidjs-ui-page-sample/README.md) | SolidJS UI Page sample |
| [Svelte UI Page](svelte-ui-page-sample/README.md) | Svelte UI Page sample |
| [Vue UI Page](vue-ui-page-sample/README.md) | Vue UI Page sample |
SDK Example Index
- ACL Sample - This example shows the the usage of ACLs with the now-sdk
- Automated Test Framework (ATF) API Samples - This example shows usage of the
Test fluent interface for creating ATF Tests in ServiceNow.
- BusinessRule Sample - This example shows the the usage of the
BusinessRule fluent interface for creating business rules ...
- Dependencies Sample - This example shows you how to use other tables in your ServiceNow instance as part of your applicati...
- Flow Sample - This is a sample of using the various
Flow APIs available in the ServiceNow SDK
- Hello World Sample - This is a Hello World example that shows you how to set up and do basic configuration of the SDK.
- React UIPage API Sample - This example shows the usage of the
UIPage Fluent interface for creating UI Pages with React in Se...
- Script Includes Sample - This example shows the the usage of script includes with the now-sdk and how to connect type informa...
- ScriptAction Sample - This example shows the the usage of
ScriptAction (sysevent_script_action)
- Scripted Rest API Module Sample - This example shows the the usage of the
RestApi fluent interface for creating scripted rest APIs i...
- Service Catalog Sample - This is a sample of using the various
ServiceCatalog APIs available in the ServiceNow SDK
- Service Portal Sample - This example shows the the usage of Service Portal with widgets and dependencies
- Simple List API Sample - This example shows the basic usage of the
List fluent interface for creating UI Lists in ServiceNo...
- Simple List API Sample - This example shows the basic usage of the
List fluent interface for creating UI Lists in ServiceNo...
- Simple Sys Module Sample - These examples show two techniques to call a module cross-scope.
- Simple Table API Sample - This example shows the basic usage of the
Record fluent interface for creating Tables in ServiceNo...
- Simple Table API Sample - This example shows the basic usage of the
ApplicationMenu fluent interface for creating Applicatio...
- Simple Table API Sample - This example shows the basic usage of the
Table fluent interface for creating Tables in ServiceNow
- Svelte UI Example - No description provided.
- UI Page Sample - This example shows the the usage of
UiPage (sys_ui_page)
- UiAction Sample - This example shows the the usage of
UiAction (sys_ui_action)
- solidjs-ui-page-sample - No description provided.
- vue-ui-page-sample - No description provided.
Technical Details
- Self-Contained: All examples are mirrored in
assets/samples/.
- SDK Version: Latest Fluent API
- Structure: Each sample represents a standalone ServiceNow application or component implementation using the SDK.
Troubleshooting
If you cannot find a specific example, try searching by keywords (e.g., 'portal', 'rest', 'acl') within this skill or the references/ directory.