Syntax of XSLT template for alert emails [AX 2012]

Updated: October 8, 2012

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

The bold text in the following code indicates how URLs for Microsoft Dynamics AX are created in the template.

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>

</head>

<body>

<xsl:value-of select="alert/message"/>

<br/>

<h2>

<a>

<xsl:attribute name="href">Dynamics://<xsl:value-of select="alert/LinkToBusinessData"/></xsl:attribute>

Go to <xsl:value-of select="alert/for"/>

</a>

</h2>

<br/>

<b>Microsoft Dynamics AX alert details</b>

<br/>

<table border="0" width="100%">

<tr width="25%">

<td><b>Occurred:</b></td>

<td><xsl:value-of select="alert/occurred"/></td>

</tr>

<tr>

<td width="25%"><b>For:</b></td>

<td><xsl:value-of select="alert/for"/></td>

</tr>

<tr>

<td width="25%"><b>Company:</b></td>

<td><xsl:value-of select="alert/company"/></td>

</tr>

<tr>

<td width="25%"><b>Event:</b></td>

<td><xsl:value-of select="alert/event"/></td>

</tr>

<tr>

<td width="25%">

<b>Data:</b>

</td>

<td>

<xsl:value-of select="alert/data"/>

</td>

</tr>

</table>

<br/>

<a>

<xsl:attribute name="href">Dynamics://<xsl:value-of select="alert/LinkToAlert"/>

</xsl:attribute>

View alerts

</a>

<br/>

<a>

<xsl:attribute name="href">Dynamics://<xsl:value-of select="alert/LinkToAlertRule"/> </xsl:attribute>

Manage alert rules

</a>

<br/>

<br/>

<b>Note:</b> You will receive an error when clicking the links if Microsoft Dynamics AX cannot be started from this computer.

</body>

</html>

</xsl:template>

</xsl:stylesheet>


Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

Show: