- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2024 07:15 AM
Hi all.
Could someone run and post the CI Class Hierarchy from one of the latest versions of SNow (we are on Washington DC but it doesn't have to be that version)? In another thread (Solved: Listing all CI Classes (instead of browsing throug... - Page 2 - ServiceNow Community), Oleg posted a script that could be used and the output that results from that script and it was incredibly helpful.
Unfortunately, I don't have the ability to run scripts, nor access the CI Class Manager. I am hoping to get the latest version of the list as the one above is 5 years old.
Could someone please help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 02:37 AM
Hi Ruth,
Here is the OOTB CI Class hierarchy (from Washington).
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 06:11 AM
By the way, here's the code for generating that output e.g. in a background script:
function getChildTables(name, level) {
var table = new GlideRecord('sys_db_object');
if (table.get('name', name)) {
gs.print('\t'.repeat(level) + table.label + ' [' + name + ']');
var childTables = new GlideRecord('sys_db_object');
childTables.addQuery('super_class', table.sys_id);
childTables.orderBy('label');
childTables.query();
while (childTables.next()) {
getChildTables(childTables.name, level + 1);
}
}
}
getChildTables('cmdb_ci', 0);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 07:55 AM
Ok than I recommend to ask an Admin in your company, she/he can also execute the script posted by @mbourla. You will see then also you companies custom tables in CMDB, if there are some.