This is the create/edit/view screen for Email and System Email Templates. These are used to fill the subject and content of emails. Both have the same fields and the only difference between the two is that System Email Templates are not available as templates on the Email Write screen. Both are available as email templates on Document Templates. See here for more background.
The fields are as follows:
Name | The template name |
Description | The template description |
Subject Type |
Determines how the Subject is processed. One of:
|
Subject | The subject to evaluate |
Subject Source |
An optional expression to select the object to evaluate against. This is only applicable when the Subject Type is Macro or Expression. E.g. a value of: $customer would evaluate Subject against the current customer. |
Content Type |
Determines how the Content is processed. One of:
|
Content | The content to evaluate |
Content Source |
An optional expression to select the object to evaluate the Content against. This is only applicable when the Subject Type is Macro, Expression or Document. E.g. a value of: $patient would evaluate Content against the current patient. |
Active | determines if the template is active or inactive. If it is inactive it is not available for selection. |
The Source Expressions can be any expression or variable that sets the object to evaluate the content against. This can be:
When the Content Type is Document the following document types are supported:
If the Content Source expression doesn't return a valid object, the document will be converted to HTML without merging.