How to change the parent of a table in scoped applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2016 10:13 AM
There is a script (see below) that changes the parents of global application tables but it doesn't work on scoped apps where one could need this function even more. Why would they deny this capability to scoped apps? Hard to understand unless of course there is another solution that I am not aware of. Any suggestions?
//Replace <source_table> with the table you want to extend
//Replace <table_extension> with the table you want to extend to, like cmdb_ci or task
var table = '<source_table>';
var old_parent = '';
var new_parent = '<table_extension>';
var changer = new GlideTableParentChange(table);
changer.change(old_parent, new_parent);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 08:57 PM
Create as a global fix script and run in the global scope against your scoped tables. We just did it on some of our internal scoped tables and it worked great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 12:06 PM
Was it the same script or different?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 09:00 PM
Hi Verda, I think I just replied to your other post on this.
The solution is to create a fix script in the global scope and run it in global against your scoped tables. We just did it for one of our internal custom applications and it worked as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2019 06:35 AM
Thanks Denise. After multiple years of designing ServiceNow tables, I have decided it is best not to change the inheritance after a table is created. The update sets do not include script-made changes.
