Scoped GlideTableHierarchy - getHierarchy()

Returns an array of strings containing all classes in the hierarchy of the current table.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
Array An array of strings of the classes in the hierarchy.
var table = new GlideTableHierarchy("incident"); 
gs.info(table.getHierarchy());
Output:
incident,task