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
Dragon SlayerDragon Slayer 

Accessing DisplayName of OrgWideEmailAddress in Email Template

How can I insert the DisplayName of OrgWideEmailAddress in the email template like how we can access the fields of other objects? E.g. I can access the name of the user by using {!User.Name}. I tried using {!OrgWideEmailAddress.DisplayName} but it doesn't work. I even tried creating a custom label but even that didn't seem to help. I am using HTML template. Any help regarding this is really appreciated.

Thanks!
Sonam_SFDCSonam_SFDC
Hi,

Doesn't look like this field is available in the text/HTML email template.

However, if you were to use Visualforce email template - you can use the OrgWideEmailAddress class to display the name of the orgwide emailaddress:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_orgwideemailaddress.htm