Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

What is the table that holds the list of all CI Classes?

Louis Evans
Giga Contributor

I am building an application and I want to be able to read the settings specific to a class (not individual CI data).  For example;

  • if a specific Effective Duration for a CI Class has been created I want to read that.
  • if recommended fields have been assigned to a specific CI Class I want to be able to read what they are

Essentially I want to read CI Class level data, not the data of the CIs themselves.  Is there a table or tables I can access for this info? 

Thanks in Advance
Louis

1 ACCEPTED SOLUTION

Sandeep90
ServiceNow Employee
ServiceNow Employee

Recommended fields can be obtained from the cmdb_recommended_fields table and the recommended column is a comma-separated field names list.

View solution in original post

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

You can get all CI class tables in sys_db_object table.

 

find_real_file.png

 

Regards,

Sachin

Hitoshi Ozawa
Giga Sage
Giga Sage

Table sys_dictionary holds all the columns of all the tables in ServiceNow. CI classes names all starts with "cmdb" to filter the list so "Table starts with cmdb".

find_real_file.png

wrong, not every child class starts with cmdb

Sandeep90
ServiceNow Employee
ServiceNow Employee

Recommended fields can be obtained from the cmdb_recommended_fields table and the recommended column is a comma-separated field names list.