SOW Attachments: ability to encrypt

etlhako
Tera Contributor

currently, when I click on attachment, I have the ability to select an option to encrypt the attachment on the normal platform but this is not available in SOW. any idea how to show the encrypt checkbox in SOW

1 REPLY 1

connorlyons
Kilo Sage

Hi @etlhako,

 

In Platform UI, attachment behavior (including encryption) is controlled by AttachmentUtils and related UI macros. In Service Operations Workspace, attachments are handled by the Now Experience UI Framework, where components are decoupled from the legacy UI macros and GlideForm APIs. The encryption option is not exposed in the standard Workspace attachment component as of Yokohama (and earlier).

 

Solution Options

  1. Enhance Workspace with a Custom Component (Advanced)
    • This approach requires Now Experience development expertise and is not trivial.

    • To add an “Encrypt Attachment” option in Workspace:
      • You would need to extend or customize the attachment experience using UI Builder and Now Experience Components.
      • This could involve:
        • Creating a custom modal or button in Workspace that calls the AttachmentEncryptionHelper via GlideAjax or Script Includes

        • Updating the attachment metadata post-upload to enable encryption using server-side code.

  2. Apply Server-Side Auto-Encryption Policy
    • This doesn’t show the checkbox but enforces encryption behind the scenes.

    • If your requirement is that all attachments should be encrypted under certain conditions (e.g., for Emergency Changes, HR Cases, etc.), you can:

      • Use a Business Rule or Scripted Flow that:

        • Detects the attachment being added

        • Automatically flags it for encryption using GlideRecord:

          • var att = new GlideRecord('sys_attachment');
            att.get(attachmentSysId);
            att.encrypted = true;
            att.update();
  3. Submit Feature Request or Check Roadmap
    • As of the Yokohama release, there is no documented support for native encryption toggling in Workspace. If this is important for your business:
      • Submit a feature enhancement request to ServiceNow via HI
      • Track the Workspace Attachment component updates in release notes

Best,

Connor Lyons

Consultant at Infocenter

CSA | CAD | 15x CIS

LinkedIn

Please mark answer correct and/or helpful for others reading this with the same issue/question.