Advanced scripting
As an app grows in complexity, it may reach the limits of what business rules, script includes, and Flow Designer actions can accomplish through configuration alone. Advanced scripting means writing directly against ServiceNow's server-side JavaScript APIs to handle logic that requires more precision or flexibility than low-code tools provide.
When does advanced scripting apply?
- GlideRecord: Query and manipulate table data in script
- GlideSystem: Access system-level functions like logging and user context
- GlideDateTime: Handle date and time calculations
- Business rules and script includes for server-side logic
- Flow Designer actions that call script includes to incorporate custom logic into automated workflows
What is ServiceNow Fluent, and when would I use it?
ServiceNow Fluent is a declarative, TypeScript-based domain-specific language (DSL) for defining your application's metadata directly in source code rather than through form and builder interfaces. Instead of configuring
a table, business rule, or ACL through the platform UI, you define it in a .now.ts file, so your app's structure lives in version-controlled source files alongside the rest of your application.
- Two-way synchronization, when changes sync between your source code and the platform regardless of which side you edit
- Dedicated APIs for common metadata types including tables, roles, ACLs, and business rules
- A general-purpose Record API for metadata types that don't have a dedicated Fluent API