About setting up alert email templates

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

To set up an alert email template, first create a template. Then, open the email editor to set up the predefined contents of email messages that are based on the template.

The predefined contents consist of merge data and links that can be inserted into the template.

The merge data is a set of data that provides details about the alert in the email message. The links give you three methods for linking from the email message to Microsoft Dynamics AX to view information about the alert.

Templates can be based on either HTML or XSLT. The procedure for setting up each kind of template is described separately. Additionally, the merge data and the link types that are applied for each kind of template differ slightly.

In an email template, you can apply three types of links to Microsoft Dynamics AX. The syntax of the links differs slightly, depending on whether you work with HTML or XSLT.

HTML link

XSLT link

Action

Dynamics://%LinkToBusinessData%

alert/LinkToBusinessData

Drill down to the alert origin, or the business data that caused the alert. The alert origin is also the location at which the alert rule is set up.

Dynamics://%LinkToAlertRule%

alert/LinkToAlertRule

Open the Manage alert rules form, where you can view the alert rule that caused the alert.

Dynamics://%LinkToAlert%

alert/LinkToAlert

Open the Notification list form, where you can view the alert.

Merge data overview

The following merge data elements can be added to the email template. The merge data elements can be used to inform the user about various aspects of the alert.

The merge data elements that you insert depend on the information that you want to display in email messages that are based on the template.

HTML merge data element

XSLT merge data element

Information that is displayed in the email message

%subject%

alert/subject

The subject that is defined by the owner of the alert rule.

%message%

alert/message

The message that is written by the owner of the alert rule.

%event%

alert/event

The event that occurred.

%occurred%

alert/occurred

The date on which the event occurred.

%for%

alert/for

The record in which the event was observed.

%data%

alert/data

Detailed information.

%company%

alert/company

The company at which the event occurred.

See also

Set up alert email templates in HTML

Set up alert email templates in XSLT

About drilling down from an alert email message

Syntax of HTML template for alert emails

Syntax of XSLT template for alert emails