Sign in
    Shared Email Templates

    How to add dataset values to the message body in Outlook with templates

    You can add fillable fields to your Outlook email templates and fill them with dataset values by using macros. With the Insert macro, you get a value from a dataset inserted into an email message automatically. With the WhatToEnter macro, you can select a dataset value through a dialog that appears when you insert a template into an email message.

    Add dataset values automatically #

    1. In a template you’re creating or editing, place the cursor where you’d like to add an auto-fillable field for a dataset value, and then select the The Insert macro button Insert macro button on the template editor toolbar.

    2. Select Insert dataset value.

    3. Select a dataset, column, and key value (a value from the key column identifying a row from where to retrieve a dataset value). Then click OK.

      The General tab in the Dataset value dialog
    4. An auto-fillable field will appear in your template. Select Save.

    When you insert such a template into an Outlook email message, the auto-fillable field will be replaced with a value from the specified column and row.

    An example of a dataset value automatically inserted into an Outlook email

    Choose what dataset values to add via a dialog #

    If you want to fill multiple template fields with values from the same dataset row by selecting a key value only once, follow these steps:

    1. Create a dataset.

    2. In your template, create a custom input field for selecting a dataset value with the WhatToEnter (WTE) macro.

      A custom input field for selecting a dataset value in an email template
    3. Copy the custom input field using the Copy from another WTE option and change the dataset column from which the value is pulled. Then select OK.

      Selecting another dataset column while copying WTE Dataset
    4. Repeat the previous step for each dataset column from which you want to retrieve a value.

    5. When you’re done, save your template.

      Three custom input fields for selecting a dataset value in an email template

    When you insert the template into an Outlook email message, a pop-up dialog will prompt you to select a value from the key column of your dataset. Select the key value to specify the dataset row from which to pull values, and then select OK.

    Selecting a key value through a pop-up dialog

    In your email message, all the corresponding custom input fields will be filled with the dataset values in one go.

    Dataset values inserted into the message body