The CreatorCon Call for Content is officially open! Get started here.

Method to determine parent/child class relationship

benny_meador
Tera Contributor

I am trying to determine if there is any OOB options to determine if a specific table class is the child/parent of another table?

Example, cmdb_ci_win_server is a child class of cmdb_ci_server.    

Any insight would be appreciated.

-Benny-

3 REPLIES 3

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Benny



Navigate to System Definition > Tables


Check for extends table...the table visible is your 'parent'



ServiceNow.png



Cheers


Robo


Thanks for the reply.   I was hoping to have a systematic way of doing it via script.  


I think I found what I was looking for using the INSTANCEOF qualifier.



i.e. sys_class_nameINSTANCEOFcmdb_ci_server.



Other options also welcome...



Regards,


-Benny-


Ivano B
ServiceNow Employee
ServiceNow Employee

Well spotted.