You need to sign in to do that
Don't have an account?
Aidan Keenan
Apex code that will show an encrypted 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??
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??
Regards,
Satish Kumar
I have the view encrypted data permission turned on. I can view the encrypted field but in the e mail template, the field remains encrypted.
"You can use encrypted fields in email templates but the value is always masked regardless of whether you have the “View Encrypted Data” permission."
The only way I found around this was to have a template that used a custom visualfource page.Then in the APEX custom controller for the page you can do a HttpRequest back to the SalesForce REST service to pull whatever record your looking for. Now while this worked, it felt extremely "hacky" and ultimately I decided against using it.