Scoped GlideElementDescriptor - getName()

Returns the element's name.

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

Output: priority