create(), delete(), query(), retrieve(), update(), describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| ApiVersion | double | CreateFilterNillableUpdate | The API version for this class. Every class has an API version specified at creation. |
| Body | textarea | Create Update | Content of the email. |
| BrandTemplateId | reference | Create | Required. ID of the BrandTemplate associated with this email template. The brand template supplies letterhead information for the email template. |
| Description | string | Create Update | Description of the template, for example, Promotion Mass Mailing. |
| DeveloperName | string | Create | The unique name of the object in the API. The name can contain only alphanumeric characters and must begin with a letter. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object's name in a managed package and the changes are reflected in a subscriber's organization. Label is Template Unique Name. |
| Encoding | picklist | Create | Character set encoding for the template. |
| FolderId | reference | Create | ID of the folder that contains the template. |
| HtmlValue | textarea | Create | This field contains the content of the email message, including HTML coding to render the email message. Limit: 384 KB. |
| IsActive | boolean | Create | Indicates that this template is active if true, or inactive if false. |
| LastUsedDate | dateTime | Filter | Date and time when this EmailTemplate was last used. |
| Markup | textarea | Create | The Visualforce markup, HTML, Javascript, or any other Web-enabled code that defines the content of the template. |
| Name | string | Create | Name of the template. Label is Email Template Name. |
| NamespacePrefix | string | Create | The namespace prefix assigned
to this object when it was created as part of a managed package. Null
if this object is not part of a managed package. Limit is 15 characters.
For more information about managed packages and namespace prefixes,
see "About Managed Packages" in the Salesforce online
help.
This field cannot be accessed unless the logged-in user has the "Customize Application" permission. |
| OwnerId | reference | Create | ID of the owner of the template. |
| Subject | string | Create | Content of the subject line. |
| TemplateStyle | picklist | Create | Style of the template, such as formalLetter or freeform. |
| TemplateType | picklist | Create | Type of template, either HTML, text, or custom templates, or those generated byVisualforce. |
| TimesUsed | int | Filter | Number of times this template has been used. |
To retrieve this object, issue a describe call on an object, which will return a query result for each activity since the object was created. You cannot use query().