Scoped GlideElement - getReferenceTable()

Gets the table name for a reference element.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The table name of the reference
var grINC = new GlideRecord('incident');
grINC.query('number','INC0010041'); // record assignment group assigned to "CAB Approval"
if (grINC.next()) { 
  // Get the table name 
  var tableName = grINC.assignment_group.getReferenceTable();
  gs.info( tableName ); 
}