Scoped GlideRecord - getTableName()

Retrieves the name of the table associated with the GlideRecord.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The table name
var gr = new GlideRecord('incident');
gs.info(gr.getTableName());

Output: