E-Mail notifications in MS Dynamics AX 2012
来源:互联网 发布:淘宝会员无线端装修 编辑:程序博客网 时间:2024/05/16 15:01
原文来自:
http://blog.mohamedaamer.com/microsoft-dynamics/ms_dynamics_ax/email_notifications_in_dynamics-ax-2012/
介绍了如何在AX 2012 中配置邮箱并通过预警发送邮件的功能。
In my first posts I have sharedthe collaboration offering by MS Dynamics AX 2012, and Alert management in MS Dynamics AX 2012, in this post I will walk through the sending e-mail notification in MS Dynamics AX 2012 based on notifications (alert rules) in MS Dynamics AX 2012. An automatic notification triggered by changes and sends an e-mail to a specific user accordingly.
e-Mail notification is a facility to let MS Dynamic AX 2012 sends e-mail messages based on the alert management notifications and enables the user to open MS Dynamics AX 2012 through a link in the email body
You have to finalize the steps in Alert Management in MS Dynamics AX 2012
Hereunder the list of the steps of e-mail notifications starting from configuration, setup, administration, and end with the execution
Configuration
The prerequisites should be configured first in order to receive an email message based on an alert notification; you have to ensure that you have them all together, and there are configuration options available according to your needs
1- Click area page nodeSystem administration, common forms, users, users
2- Select user ID, and click on Options
3- Options form will pop up, under General option, enter email address which the user will receive message which sent by MS Dynamics AX 2012
Setting
Here you will setup the email parameters (outgoing server SMTP), and email templates.
1- Click area node page System administration, Setup, System, e-mail parameters
2- E-mail parameters form will popup, enter the following information Outgoing mail server SMTP, SMTP port number, user name, password, attachment size, and path (This need technical consultant involvement)
Here you will enter the email message body;
1- Click area Organization administration, Setup, Email templates
2- Create new email template (Ctrl + N), enter email description, select language, sender name, and sender email.
3- In the lower pane, create new line (Ctrl + N), select language, enter subject, and layout (HTML, or XSLT) here I will use HTML
4- Click on e-mail message button
5- Email editor form will pop up here you can enter the message that will appear to the user, it could be HTML code in order to enter hyperlinks in the message body.
———————————————————————————————————————————————————————————-
<P><B><FONT color=#003399 size=4 face=Tahoma>%message%
< P><A href=”dynamics://%LinkToBusinessData%/”><U><FONT color=#0000ff size=2 face=Tahoma>Go to %for%</FONT></U></A><FONT color=#0000ff size=2 face=Tahoma> </FONT></P></FONT></B>
< P></P>
< P><A href=”dynamics://%LinkToBusinessData%/”><U><FONT color=#0000ff size=2 face=Tahoma>Go to %for%</FONT></U></A><FONT color=#0000ff size=2 face=Tahoma> </FONT></P><FONT color=#cccccc size=2 face=Tahoma>
< P>__________________________________________________ </P></FONT><B><FONT color=#003399 face=Tahoma>
< P>Alert details<FONT color=#003399 size=2 face=Tahoma></FONT></P></FONT></B><FONT color=#003399 size=2 face=Tahoma></FONT><FONT color=#cccccc size=2>
< P>
< TABLE cellSpacing=1 cellPadding=3 background=””>
< TBODY>
< TR>
< TD>
< P align=left><FONT color=#cccccc size=2 face=Tahoma>Occurred:</FONT></P></TD>
< TD>
< P><FONT face=Tahoma><FONT color=#003399 size=2>%occurred% </FONT></FONT></P></TD></TR>
< TR>
< TD>
< P align=left><FONT color=#cccccc size=2 face=Tahoma>For:</FONT></P></TD>
< TD><FONT face=Tahoma><FONT color=#003399><FONT size=2>%for%</FONT> </FONT></FONT></TD></TR>
< TR>
< TD>
< P align=left><FONT size=2><FONT color=#cccccc face=Tahoma>Company:</FONT></FONT></P></TD>
< TD><FONT face=Tahoma><FONT color=#003399><FONT size=2>%company%</FONT> </FONT></FONT></TD></TR>
< TR>
< TD><FONT face=Tahoma><FONT color=#cccccc size=2 face=Tahoma>Event:</FONT></FONT></TD>
< TD><FONT face=Tahoma><FONT color=#003399 size=2 face=Tahoma>%event% </FONT></FONT></TD></TR>
< TR>
< TD><FONT face=Tahoma><FONT color=#cccccc size=2>Additional info:</FONT><B> </B></FONT></TD>
< TD><FONT face=Tahoma><FONT color=#003399><FONT size=2>%data%</FONT> </FONT></FONT></TD></TR></TBODY></TABLE><FONT color=#cccccc size=2 face=Tahoma></FONT><FONT color=#cccccc size=2 face=Tahoma></FONT></P></FONT><FONT color=#cccccc size=2 face=Tahoma></FONT><FONT color=#cccccc size=2 face=Tahoma></FONT><FONT color=#0000ff size=2 face=Tahoma>
< P><A href=”dynamics://%LinkToAlert%/”><U><FONT color=#0000ff size=2 face=Tahoma>View Alert</FONT></U></A><FONT color=#0000ff size=2 face=Tahoma> <BR></FONT><A href=”dynamics://%LinkToAlertRule%/”><U><FONT color=#0000ff size=2 face=Tahoma>Change Alert Rule</FONT></U></A><FONT color=#0000ff size=2 face=Tahoma><BR></FONT><FONT color=#003399 size=2 face=Tahoma><BR></FONT></P></FONT><FONT color=#cccccc size=2 face=Tahoma>__________________________________________________ </FONT><FONT color=#003399 size=1 face=Tahoma><STRONG> </STRONG>
< P><STRONG>Dynamics AX Alerts <BR>You may receive an error when clicking on the links if Microsoft Dynamics AX cannot be launched from this computer. </STRONG></P><FONT size=2>
< P> </P></FONT></FONT>
——————————————————————————————————————————————————————————–
(Source MS Dynamics AX 2012 demo company)
Here you’ll identify the email template into MS Dynamics AX 2012 system parameter, if this step is not done you will receive an error message during triggering the e-mail that should be sent
1- Click area System administration, Setup, system parameter
2- System parameter form will popup, under alert node, select the e-mail ID.
Administration
There are two main tasks in administration, the first is following up on email sending status and the second is the messaging batch. There is a specific job must be run to let the email messages engine working out and sends the emails to users, this job could be automatically run as batch job “I will cover batch jobs setup in another blog post”, or could be manually run.
The administrator following up on the email queue by the following steps:-
1- Click area node System administration, periodic, email processing, and e-mail sending status
2- Email sending status form will popup administrator could restart sending the message, and view its content
The batch could be run manually as the following:-
1- Click area node System administration, periodic, email processing, and Batch
2- The batch form will popup, press OK
Execution
The execution of the email notification is triggered by an alert rules, or a workflow notification, then MS Dynamics AX 2012 send an e-mail message.
1- The user will receives an e-mail message
2- Click on the hyperlink, you will receives a popup to access MS Dynamics AX 2012 client, then the clinet will start up on the form
- See more at: http://blog.mohamedaamer.com/microsoft-dynamics/ms_dynamics_ax/email_notifications_in_dynamics-ax-2012/#sthash.jAl6tWn4.dpuf
- E-Mail notifications in MS Dynamics AX 2012
- Microsoft Dynamics AX 2012
- 资源产能(Resource Capabilities) in Dynamics AX 2012
- Dynamics AX 2012 for Retail: Items not showing in POS
- Class Structure Of FormLetter Framework In Microsoft Dynamics Ax 2012
- AX功能索引(Dynamics AX 2012 R3 CU12)
- Dynamics NAVAX Refresh caller form[AX 2012]
- Microsoft Dynamics AX 2012 X++ Editor Extensions
- Periodic Processing in Microsoft Dynamics AX, Part II
- Compelling Analytics: SQL Server Reporting Services in Dynamics AX 2009
- How to temporarily suppress infolog messages in Dynamics Ax (deux)
- Support of basic operations on Sets in Dynamics AX
- Code code to generate code in Dynamics AX
- Dynamics Ax SQL statements (SQL Strings in DAx)
- New unified DateTime type in Dynamics Ax 5.0
- How to Setup Alerts in Dynamics Ax 4.0 & 2009
- Microsoft Dynamics AX Sumary
- 初学Dynamics AX -> X++
- 循环获取文件夹中子文件夹中的文件
- Leetcode101: Kth Smallest Element in a BST
- cas单点登录系统多个系统容易超时
- 适配
- Android循序渐进 - 3.4 TouchListener PK OnTouchEvent + 多点触碰
- E-Mail notifications in MS Dynamics AX 2012
- Nginx原理简介与 搭建反向代理服务器过程详解
- java中常用的字符串的截取方法
- android 弹窗
- matlab中由size函数引发的问题
- 20151014星号三角阵(四种)
- hihocoder 1097 : 最小生成树一·Prim算法
- php删除指定文件夹下的所有文件
- Android GestureDetector 总结