From 37bec6a82c511a793493d48c8a758b0705b7fbee Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 16 Oct 2025 06:28:17 -0700 Subject: [PATCH] updated getAllCIClasses read me for better documentation --- .../Get All the CI classes/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Server-Side Components/Background Scripts/Get All the CI classes/README.md b/Server-Side Components/Background Scripts/Get All the CI classes/README.md index 7ac1084d04..88ef5add1a 100644 --- a/Server-Side Components/Background Scripts/Get All the CI classes/README.md +++ b/Server-Side Components/Background Scripts/Get All the CI classes/README.md @@ -1 +1,17 @@ -This background script provides the names of all the available Ci classes present in the system +# Get All CI Classes + +A background script that lists all Configuration Item (CI) classes in your ServiceNow instance by using the TableUtils API to find all tables that extend `cmdb_ci`. + +## Usage + +1. Navigate to **System Definition → Scripts - Background** +2. Copy and paste the script content +3. Click "Run fix script" + +## What It Does + +The script: +1. Creates a TableUtils object for the base CI table (`cmdb_ci`) +2. Gets all tables that extend this base class using `getAllExtensions()` +3. Converts the Java object to JavaScript array using `j2js()` +4. Prints each CI class table name