HomeStudy GuidesScript Includes

Script Includes

ServiceNow CAD Study Guide

Overview

Script Includes are reusable server-side JavaScript objects that are loaded on demand. They promote code reuse and maintainability by encapsulating logic in class-based structures. Client-callable Script Includes enable client-server communication through the GlideAjax framework, following the AbstractAjaxProcessor pattern.

Why It Matters for the Exam

Script Includes account for 12% of the CAD exam. Questions focus on creating and using Script Includes, extending base classes, making Script Includes client-callable, and understanding scope implications.

Key Concepts to Master

1Script Include structure and prototypes
2Extending classes (AbstractAjaxProcessor)
3Client-callable Script Includes
4GlideAjax integration patterns
5Scoped vs global Script Includes
6Code reuse best practices
7Script Include debugging
8initialize() and type patterns

💡 Exam Tips & Strategy

Remember that client-callable Script Includes must extend AbstractAjaxProcessor and have the 'Client callable' checkbox selected. The getParameter() method retrieves values passed from GlideAjax. Script Includes are loaded on demand — they don't execute until called.

12
Practice Questions
12%
Exam Weight
CAD
Certification