does child table inherit new field created in parent table ?

Vineetha Rohra1
Giga Guru

I have created a custom table that extends 'cmdb_ci' table.

After that i created a field in the cmdb_ci table. This field is not available for the custom table that i created in step 1.

How to make it available to all the tables which are extending cmdb_ci ?

i mean how to make that field available to all those tables to whom cmdb_ci is the parent ?

7 REPLIES 7

nasrin786
Kilo Expert

Hi Vineetha,



Task and cmdb_ci tables are parent tables, these table properties are inherited by child tables when u extends parent table while you creating custom table.


You will need to declare a new Glide Record "extension table" and get it using the sys_id in parent. This object should then have the custom fields.



Please refer these links:


http://wiki.servicenow.com/index.php?title=Creating_a_Custom_Table#gsc.tab=0


https://wiki.servicenow.com/?title=Reference_Fields#gsc.tab=0



Thanks & Regards,


Nasrin Syed


                                                                                  Pls: Hit Like,helpful /correct if applicable.


I think what Vineetha was saying was that they already created a table that extends the parent table, but they made new custom fields for the parent table after that. The way I understand it they're asking if there's a way to "update" the child table so that it inherits the parent table's new custom fields, without needing to make a whole new child table.


Yes Michel, this is what i meant, is there any way to do it


Hi Vineetha,


It is really a nice feature that I come to know today, Adding fields in Parent table is a low-impact change in Servive-now. I hope we may need to do configure somewhere.


But I found other way check if it helps,


Please refer following link:


Promote a Field from an Extended Table in ServiceNow - ServiceNow Guru