How to change the extended table

Tasuku Sawayana
Tera Contributor

The default extended table for network equipment is hardware, but I want to change this extended table to another table.
Please teach me know if the extended table can be changed

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

you can use the following method to re-parent a table

new SNC.CMDBUtil.reParentTable('<TABLE>', '<OLD PARENT>', '<NEW PARENT>')

See https://developer.servicenow.com/dev.do#!/reference/api/quebec/server_legacy/c_CMDBUtilAPI#r_CMDBU-r... for the explanation.

Kind regards
Maik

View solution in original post

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

no, unfortunately this is not possible. Instead you have to create a new table with the wanted inheritance. Then migrate data from the old table to the new table.

Kind regards
Maik

Maik Skoddow
Tera Patron
Tera Patron

Hi

you can use the following method to re-parent a table

new SNC.CMDBUtil.reParentTable('<TABLE>', '<OLD PARENT>', '<NEW PARENT>')

See https://developer.servicenow.com/dev.do#!/reference/api/quebec/server_legacy/c_CMDBUtilAPI#r_CMDBU-r... for the explanation.

Kind regards
Maik

Where should I run the script that modifies the parent table?

(I have little experience with ServiceNow.TT)

MrMuhammad
Giga Sage

Hi @Tasuku Sawayanagi 

Please follow the instructions on the following blog to achieve this. 

The Wrong Parent... | Community Blog

Always try the script first in Dev and after proper testing move it to higher instances.

Hope that helps!

Regards,

Muhammad

Regards,
Muhammad