scaffold_application
Creates a full application structure for a new ServiceNow app including tables, business rules, script includes, ACLs, and ATF tests.
Instructions
Generate a complete application scaffold for a new ServiceNow application.
Creates a recommended file/artifact structure with:
Main application table (u_)
Number prefix and auto-numbering
Core Business Rules (set number, state management)
Script Include for business logic
UI Action for state transitions
ACL rules (read/write/delete)
ATF test suite
Documentation
Returns all scripts ready to create in ServiceNow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_name | Yes | Application name (e.g. "Asset Request") | |
| prefix | Yes | Short prefix for table name and number (e.g. "ar" → table u_ar_request, number ARREQ0001) | |
| description | No | What this application manages | |
| fields | No | ||
| states | No | State values, e.g. ["draft","submitted","approved","rejected","closed"] |