Impact, if any, by changing the Extends Table Attribute

Shiraz Bhojani
Tera Expert

I think I know the answer, but just wanted to see if anyone has anything to add.

 

I am fully aware what Extending a table means. However, I am curious to find out what happens if we force to change the value of "Extends Table".  For example:

 

Table A extends from cmdb_ci_hardware. I want to change this to cmdb_ci_computer?

 

Does cmdb_ci_hardware artifacts (fields, Business rules, scripts etc) are removed from Table A?

Does cmdb_ci_computer artifacts extends to Table A?

 

Thanks.

2 REPLIES 2

Christopher P
Tera Contributor

I tried “GlideTableParentChange” api  to change the parent table. But it thrown some error like we can’t change the parent table. So I think we need to re-create the table again if we need to change the parent.

 

Sandeep Rajput
Tera Patron
Tera Patron

As mentioned by Chirstopher there is an undocumented API available which can let you change the parent of a table. However, they might have been deprecated and using them may lead to errors. Here is a blog post about the GlideTableParentChange API https://snowunderground.com/blog/2021/10/1/undocumented-table-extension-apis