Dynamics AX Tips

Change-Based Email Alerts in Dynamics AX 2012 (Part 1)

Subscribe Here!

Back to main Blog
Steve Shebuski, VP of Digital Strategy

Guiding businesses through their digital transformation journey

12Change-based alerts in Dynamics AX 2012 is an underutilized tool that creates greater transparency within your environment by helping you keep up-to-date with system changes. The two types of alerts that are currently available are ‘notification’ and ‘email’ – the former being internal to the AX environment, while the latter is external. This post will focus on the email portion of alerts, from potential uses and system setup to testing functionality.

Change-Based Alerts

Change-based alerts are commonly used for exactly what the name implies – when system data is changed or manipulated. The options that AX 2012 provides are:

  • When a field’s value has changed
  • When a field is set to a specific value
  • When a record is created
  • When a record is deleted

As an example, suppose you are a Buying Manager and you oversee all purchase orders submitted to vendors. You would like to be notified any time that a PO is deleted so that you can inquire to your staff about the change. In this case, we would setup an alert rule on the Purchase Orders form within the Accounts Payable module. Before creating the rule however, several other configuration steps must be completed first.

User Options

Any user that wishes to receive email alerts must have a valid email address assigned to their user account. Navigate to System Administration > Users > Users, select a user account and click the Options button to access.

Batch Group

A batch group should be created in order to properly setup the batch job schedule. Call the group “Alerts” or something similar. Navigate to System Administration > Setup > Batch Group. Ensure that your batch server is enabled by highlighting your newly created group, then clicking on the Batch Servers tab and adding it to the “Selected Servers” side of the form.

Email Parameters

If not already configured, the email parameters form must be filled out with your outgoing server’s SMTP information. Navigate to System Administration > Setup > System > E-mail Parameters.

Email Template

Email alerts utilize a template that contains the subject & body text of the email to be sent. This template can contain static text, HTML, and/or merge data which will pull data directly from the alert itself. Here is more information on adding data to your email template from Microsoft TechNet.

Creating Your Template:

  1. Navigate to Organization Administration > Setup > E-mail Templates.
  2. Create a new line, and provide it an ID, description, default language, as well as the sender’s name and email address you would like displayed to the user receiving the message
    1. This does not have to be a valid person/email within your organization
  3. Create a new line in the lower-half of the form and specify the language, subject text, and layout format type you would like to use
    1. A good subject for this template might be, “Record has been deleted in Purchase Orders”
  4. Click on the E-mail Message button on the form to edit the email’s body

Alert Parameter

Now that we have a template created, we need to tell the system to use this template when an email alert is generated. This is specified in the System Parameters form, accessed via System Administration > Setup > System Parameters. Click on the Alerts tab, and under Email Alerts, find your newly created template ID in the dropdown.

See Part 2

 Have questions about change-based email alerts in Dynamics AX 2012Contact us. 

Have Questions? We are here to help.

Stay up to date