Skip to content

Commit 6cfa7da

Browse files
authored
updated getAllCIClasses read me for better documentation (#2214)
1 parent 5bb9298 commit 6cfa7da

File tree

1 file changed

+17
-1
lines changed
  • Server-Side Components/Background Scripts/Get All the CI classes

1 file changed

+17
-1
lines changed
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
This background script provides the names of all the available Ci classes present in the system
1+
# Get All CI Classes
2+
3+
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`.
4+
5+
## Usage
6+
7+
1. Navigate to **System Definition → Scripts - Background**
8+
2. Copy and paste the script content
9+
3. Click "Run fix script"
10+
11+
## What It Does
12+
13+
The script:
14+
1. Creates a TableUtils object for the base CI table (`cmdb_ci`)
15+
2. Gets all tables that extend this base class using `getAllExtensions()`
16+
3. Converts the Java object to JavaScript array using `j2js()`
17+
4. Prints each CI class table name

0 commit comments

Comments
 (0)