views:

703

answers:

1

Does anyone have some sample code or can direct me to which class I can modify to add more information to the alert messages in Dynamics AX (DAX). I want to for instance add a vendor number and userid when a name of a vendor has been changed.

EDIT: I have been told by someone that HTML code must be entered in the description panel when setting up the alert. If this is true and anyone has more info on this it would be great if you could share this info.

Thanks in advance.

+4  A: 

There's an article on Technet that shows the merge-data elements you can use in an e-mail template.

To add a new merge-data element, you will need to modify the class EventActionEmail. The method createEmailParameterMap returns a map containing the elements and the data to replace them with. The execute method passes that map to SysEmailTable::sendMail to actually format and send the email.

Jay Hofacker