List of all Classes whose Base Class is "cmdb_ci"

prabh
Mega Expert

Hi All,

I want a list of all Classes whose Base Class is "cmdb_ci". Please help me how can I get the list.

Thanks & Regards,

Preety

15 REPLIES 15

juancarlos_muro
Kilo Expert

Hi,


If you need it from a script you can use "TableUtils". You can test it going to https://<instance>/sys.scritps.do and running the next script:



var tu = new TableUtils("cmdb_ci");


var ext = tu.getTableExtensions();


gs.print("Extensions: " + ext);



Cheers,


Carlos


Juan,



your code can also be tested if you activate the elevated privilege security_admin and go to the Scripts - Background module (in case you wouldn't know yet)



Greetings,



Stijn


postwick
Giga Expert

Put sys_db_object.list into the filter box at the top of your navigation frame.


Find one that has a Super Class of cmdb_ci, right click cmdb_ci, and select Show Matching.


Ed Laar1
Kilo Guru

cmdb_ci is the base class for every CI in the system and contains the common ci attributes used by every other CI class so used by every other CI in the ServiceNOW CMDB.


In our instance we use about 47 different ci-classes as much as possible alligned with a user logical way of deviding ci's. Every class in our situation always starts with cmdb_ci.



Ed


Manoj Kumar16
Giga Guru

Hi,



Can these list of classes available in the choice list be deactivated by any means. I don't find the list of choices in the dictionary as it is populating all the classes available for cmdb_ci in the choice list.



I want to restrict the visibility of some choices appearing in the choice list. Is there a way to deactivate any records like we do for the choice list options so that they do not appear ?



Thanks in advance for the suggestions.