- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 07:44 PM
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
Solved! Go to Solution.
- Labels:
-
Now Platform App Engine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 08:17 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 08:13 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 08:17 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 09:54 PM
Where should I run the script that modifies the parent table?
(I have little experience with ServiceNow.TT)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 08:45 PM
Hi
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
Muhammad