Scoped GlideElementDescriptor - getAttachmentEncryptionType()

Returns the encryption type used for attachments on the element's table.

This method is for use with the Edge Encryption plugin.

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

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

var isEdge = ed.getAttachmentEncryptionType();;

Output: null