Scoped GlideElementDescriptor - isAutoOrSysID()

Returns true if the element is an automatically generated or system field.

Automatically generated and system fields cannot be encrypted. This method is for use with the Edge Encryption plugin.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the element is automatically generated or a system field.
var grInc = new GlideRecord('incident');
grInc.query('priority', '1');
var field = grInc.getElement('priority');
var ed = field.getED();

isEdge = ed.isAutoOrSysID();
gs.info(isEdge);

Output: false