Scoped GlideElementDescriptor - getEncryptionType()

Returns the element's encryption type.

This method is for use with the Edge Encryption plugin.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The element's encryption type. Returns null if the element is not encrypted.
var grInc = new GlideRecord('incident');
grInc.query('priority', '1');

var field = grInc.getElement('priority');
var ed = field.getED();

sEdge = ed.getEncryptionType();
gs.info(isEdge);

Output: null