Scoped GlideRecord - getDisplayValue()

Retrieves the display value for the current record.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The display value for the current record.
var gr =new GlideRecord('incident')
gr.query('sys_id','ef43c6d40a0a0b5700c77f9bf387afe3');
gr.next();
gs.info(gr.getDisplayValue());

Output: