Scoped GlideRecord - getRecordClassName()

Retrieves the class name for the current record.

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

Output: incident