create(), delete(), query(), retrieve(), update(), describeSObjects(), getDeleted(), getUpdated()
| 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. This name can contain only underscores and alphanumeric characters, and must be unique in your organization. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. 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 | Filter | The namespace prefix associated
with this object. Each Developer Edition organization that creates
a managed package has a unique namespace prefix. The limit is 15 characters.
You can refer to a component in a managed package by using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
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().