March 2017
Beginner
358 pages
9h 51m
English
The following script gets the short_description field's element descriptor, and then logs some info about it:
var gr = new GlideRecord('incident'); gr.get('46f09e75a9fe198100f4ffd8d366d17b'); var element = gr.short_description.getED(); var description = 'The ' + element.getLabel() + ' field has the name: ' + element.getName() + '. '; if (element.isEdgeEncrypted()) { description += 'It is ' + element.getEncryptionType() + ' encrypted.'; } gs.info(description);
This code will return The Short description field has the name: short_description. - If it's encrypted, it'll also add a sentence stating the encryption type.
Read now
Unlock full access