
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-08-2022 12:01 PM
As a ServiceNow developer it is very important to know what is a list of table extensions, or parent before you start your configuration and coding to eliminate custom change so you can use ServiceNow out-of-box (OOB) as possible.
I would like to introduce two easy way to find a list of table extensions, or parent below:
Method One using TableUtils()
We are going to use "Script - Background" to get a list of table extensions, or parent:
- Review a list of table extensions
Results: total 15 extended tables is displayed
- Review a list of table parents
Method Two using sys_db_object
- Review a list of table extensions, or parents
- Search sys_db_object.list via Filter Navigator
- Search "HR Case" on Extends table filed and then a list of table extensions will be displayed
- Display HR Case record by clicking "HR Case" under "Extends table" so you can see a parent
- Search sys_db_object.list via Filter Navigator
If you are good for script, I recommend to use TableUtils() method, but if you are not good for script, you can use sys_db_object.list method. One most advantage of TableUtils method can review a list of all related parent, but sys_db_object.list method can only get a direct parent.
- 1,518 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks. Another useful method for checking if a table was extended from Task table --
new TableUtils("param_table_name").getAbsoluteBase()
Ex: if (new global.TableUtils(current.getTableName()).getAbsoluteBase() == 'task' ) {
}