function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aidan KeenanAidan Keenan 

Displaying an encrypted custom field

Hi

I have a encrypted custom field. I want this field to be shown as plain text in an e mal template. I am using the apex outputField  <messaging:attachment >
Encrypted Account Number: <apex:outputField value="{!relatedTo.ts2__Employee__r.Sample_Bank_Acc__c}"/>
</messaging:attachment>
However the field remaims encypted in the e mail attachment.
Does anyone know a way around this??
ericmonteericmonte
Unfortunately not since it is an encrypted field. Encrypted field are only viewable when the user's profile has View Encrypted Data.

Even the System Administrator profile doesn't have the View Encrypted Data available to it.

https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_about_encrypted_fields.htm&language=en