
from nowdev-ai-toolbox8
Guidance and patterns for writing ServiceNow server-side code: Script Includes, JavaScript modules, system APIs (gs.*), session management, event queueing, and
ServiceNow Server Script Logic provides concrete, platform-aware guidance for authoring server-side code on the Now Platform. It explains scoped-app restrictions, safe replacements for blocked APIs, common system operations (user context, logging, properties), event queue usage, session and impersonation handling, and patterns for bridging older Script Include patterns with newer Fluent/SDK module approaches. The skill is focused on practical, deployable patterns rather than theoretical best practices.
Trigger this skill when authoring or reviewing server-side scripts in ServiceNow: Script Includes, Business Rules, Script Actions, Scheduled Jobs, and Fluent SDK modules. Use it when migrating classic Script Includes to module-based approaches, when handling scoped-app API limitations, or when implementing event-driven automation and safe impersonation flows.
Best used by agents or humans familiar with ServiceNow development and able to edit platform code (Glide APIs).
This skill has not been reviewed by our automated audit pipeline yet.