Scoped GlideElementDescriptor - getLabel()

Returns the element's label.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The element's label.
var grInc = new GlideRecord('incident');
grInc.query('priority', '1');
 
var field = grInc.getElement('priority');
var ed = field.getED();
 
var isEdge = ed.getLabel();
gs.info(isEdge);

Output: Priority