Scoped GlideElementDescriptor - getLength()

Returns the element's length.

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

Output: 40