Use the AILensActionService script include together with Lens actions to leverage ServiceNow AI Lens as a service for extracting information from the provided images and getting answers to your questions.Creates an AILensActionService instance.Invokes ServiceNow AI Lens as a…
You can generate business calendar spans and their names using the Script includes titled BusinessCalendarGeneratorUtil. The calendars you create are accessible across both global and scoped applications.
Add a script include method that controls the Playbook tab visibility on the contract repository record by verifying plugin availability and applying conditional logic.
You can use a script to restrict filters and breadcrumbs to specific roles, either on a per-table or global basis. Using a script is an advanced option that offers additional flexibility compared to using list control.
By default, client-callable script includes that do not explicitly set visibility, are public. If needed, add the glide.script.ccsi.ispublic property to enable privacy control over all client-callable script includes accessed by public pages.
Modify the Script Includes for milestone icons of the roadmap and portfolio plan to customize the icons to be shown in the Roadmap tab in the workspace.
To transform Scratchpad updates sent by your provider into a format required for the Zero Touch request flow, you must have a Script Include with the method transformScratchPadToHAMZTRFormat.
The Password Reset plugin installs script includes that implement password reset processes. To enable you to extend functionality, each base-system script include provides extension points that you can use to invoke "extension scripts" that you customized.
Update the ContractsAIAgentsHelper script include to add the sys_id of a customized Manage contract repository agentic workflow to run the agentic workflow autonomously.
Live agent configuration is used in the self-solved deflections (Deflection using KB articles, Deflection using QnA AIS, Deflection using QnA LLM, and Deflection using ITSM VA). While we configure these deflections, we need to update the live agent script include.
Script includes call workflows within Lifecycle Events.
Using an agent or building an integration?
The same documentation is available through the public REST API.
GET /api/docs/search?q=GlideRecord&limit=20
GET /api/docs/document?path=…
GET /api/docs/:id?revision=…
Search returns document paths, IDs, snippets, and an index revision. Read by path for a stable reference; numeric IDs should be used with the returned revision. Document bodies are Markdown.