Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Loading