How to add dataset values to the message body in Outlook with templates
In this article
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 #
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
Insert macro button on the template editor toolbar.Select Insert dataset value.
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.

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.

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:
Create a dataset.
In your template, create a custom input field for selecting a dataset value with the WhatToEnter (WTE) macro.

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.

Repeat the previous step for each dataset column from which you want to retrieve a value.
When you’re done, save your 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.

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