Skip to main content
Version: 4.1 (2026 H2)

Outlook Template Types

Outlook templates in primedocs are created and managed for Outlook (New). Email, signature, and campaign templates are primarily designed in HTML: email and signature templates in the primedocs HTML template editor, campaign templates in the visual editor, where the HTML is generated in the background. In addition, these three template types hold a plain text content for emails in «Plain text» format. The disclaimer template is the exception: it is created as a Word document (.docx).

Template TypePurpose
Email TemplatePredefined email messages with dynamic fields and forms.
Campaign TemplateContent blocks (banners, promotional text) in HTML and plain text that are automatically embedded in signatures.
Signature TemplateAutomatic email signature with profile data and optional campaign fields.
Disclaimer TemplateLegal notices that are appended to outgoing emails.

Tools​

These tools are used when creating the HTML-based Outlook templates:

  • Outlook (New): For creating the visual content of an email or signature.
  • primedocs Add-In (Templating menu): For converting the visible content into HTML and back.
  • HTML template editor: For editing the HTML content directly in the primedocs template editor. Next to the editor, the Preview continuously shows the result, with the values of the profile chosen under Profile. If the preview cannot be generated, a warning with the reason appears there.
  • Visual editor: For designing campaign templates directly in the template editor, without HTML knowledge.
HTML and plain text

Email messages in Outlook (New) are usually HTML-based, which is why the templates are designed in HTML in a template editor. However, emails can also be composed in «Plain text» format, either as the default format in Outlook or switched per message. For that case, every email, signature, and campaign template additionally holds a plain text content, which the «Extract plain text from HTML» button can take over from the HTML. If it is empty, it is derived from the HTML at generation time.

Content and placeholders​

Placeholders work in the HTML content and the plain text content, in email templates also in Subject, To, Cc and Bcc.

Placeholders are written in double curly braces and refer to:

  • Forms fields: {{Forms.<Id>}}, for nested elements (Object, ObjectCollection) {{Forms.<Id>.<Field>}}. The fields of an AdditionalProfile are not available in Outlook templates.
  • Data values from Connect: {{Data.<Id>}}, email templates only
  • Profile data: {{Profile.User.<Field>}} and {{Profile.Org.<Field>}}
  • Document and template metadata: e.g. {{Document.LanguageLcid}} or {{Document.Template.LocalizedName}}
  • Fields: {{<Name>}}

The following rules apply:

  • Text values are inserted HTML-escaped, FormattedText values as HTML. Choice fields insert the Value of the selected option, date fields the formatted text.
  • Use FormattedText only in the HTML content. In the plain text content, the subject and in To, Cc and Bcc, use Text fields.
  • Use yes/no fields only as a condition in {{#if}}, not as output.
  • Conditions ({{#if}}) and lists ({{#each}}) work as described under Placeholders, Loops and Conditions. An ObjectCollection from Forms is output with {{#each Forms.<Collection>}}…{{this.<Field>}}…{{/each}}.
  • Which HTML attributes accept placeholders is listed under Dynamic Attributes. <img src="{{Profile.Org.Logo}}"> embeds the image in the email.

Conditional content​

Compute content that should only appear under a condition in a Field. The field returns empty text when the content is not needed:

<Text Name="DeputyLine">
<Code>$("Forms.ShowDeputy") ? "Deputy: " + $("Forms.DeputyName") : ""</Code>
</Text>

In the HTML content, place the field in an {{#if}} block so that the surrounding markup is omitted as well:

{{#if DeputyLine}}<p>{{DeputyLine}}</p>{{/if}}

Use a FormattedText field the same way for formatted blocks.