You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()`
0 commit comments