EmailTemplate

Represents a template for an email, mass email, list email, or Sales Engagement email. Supported in first-generation managed packages only.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see EmailTemplate in the Object Reference for the Salesforce Platform.

Field NameField LabelTypeDigitsLengthPrecisionScale
ApiVersionAPI Versiondouble  181
BodyEmail Bodytextarea 384000  
BrandTemplateIdLetterhead IDreference 18  
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
DeliveryRateDelivery Ratepercent  52
DescriptionDescriptionstring 4000  
DeveloperNameTemplate Unique Namestring 80  
EncodingEncodingpicklist 40  
EnhancedLetterheadIdEnhanced Letterhead IDreference 18  
FolderIdFolder IDreference 18  
FolderNameFolder Namestring 256  
HtmlValueHTML Valuetextarea 384000  
IdEmail Template IDid 18  
IsActiveAvailable For Useboolean    
IsBuilderContentMade in Email Template Builderboolean    
LastModifiedByIdLast Modified By IDreference 18  
LastModifiedDateLast Modified Datedatetime    
LastUsedDateLast Used Datedatetime    
MarkupMarkuptextarea 1048576  
NameEmail Template Namestring 80  
NamespacePrefixNamespace Prefixstring 15  
OwnerIdOwner IDreference 18  
RelatedEntityTypeCustom Object Definition IDpicklist 40  
SubjectSubjectstring 1000  
SystemModstampSystem Modstampdatetime    
TemplateStyleStylepicklist 40  
TemplateTypeTemplate Typepicklist 40  
TimesUsedTimes Usedint9   
TotalDeliveredTotal Deliveredint9   
TotalHardBouncedTotal Hard Bouncesint9   
TotalOpensTotal Opensint9   
TotalOutOfOfficeTotal Out Of Officeint9   
TotalRepliesTotal Repliesint9   
TotalSentTotal Sentint9   
TotalSoftBouncedTotal Soft Bouncesint9   
TotalTrackedLinkClicksTotal Tracked Link Clicksint9   
TotalTrackedSentTotal Tracked Sentint9   
TotalUntrackedSentTotal Untracked Sentint9   
UiTypeUI Typepicklist 40  
UniqueOpensUnique Opensint9   
UniqueRepliesUnique Repliesint9   
UniqueTrackedLinkClicksUnique Tracked Link Clicksint9