Description
Overview
Decrypting attachments using a script.
Decryption
You can encrypt using the following:
sysAttachment.changeEncryptionContext(attachmentGR.getValue("table_name"), attachmentGR.getValue("table_sys_id"), attachmentGR.sys_id, encryptionId);
You can decrypt by passing an empty encryptionId.
Example
sysAttachment.changeEncryptionContext(attachmentGR.getValue("table_name"), attachmentGR.getValue("table_sys_id"), attachmentGR.sys_id, "");