Workflows with Email Configuration | Microsoft Dynamics 365
Ahmad Khan
Microsoft Dynamics 365 F&O Consultant | Microsoft Certified (MCP) | Functional Consultant at Aristocrat Gaming
The article sections include step-by-step instructions on how to set up a simple (but dynamic) e-mail template or message, which automatically gets its information from a message configured within a workflow. A basic function that clients often are interested in when making use of the Dynamics workflow functionality, is being able to send and receive an e-mail when a workflow action occurs. Unfortunately, it is also one of those areas of the system where the configuration easily can get a bit tricky, given the number of required steps and lack of detailed Microsoft documentation.
Companies normally implement workflows due to following reasons:
Let's move on to the configurations in Microsoft Dynamics 365.
Step 1: Setup Email Template
Note: Some workflows require setting up email templates organization-wide which can be done through System Administration > Setup > Email > Email Messages. The setup is the same as mentioned in the below steps. In the steps mentioned below, I have set it up through the Organization Administration module. Read the Microsoft article mentioned below to learn more about workflow types.
Navigation: Organization Administration > Setup > Organization Email Templates
Steps:
Now save the HTML code in txt. file and upload by clicking on the "Email message" button.
Step 2: Setup Email Parameters
Setting up email parameters seems to be a tough part of configuration but in reality, it's easy. Better reach out to the IT department to configure it or read the Microsoft doc to get more clarity on it.
Navigation: System Administration > Email > Email Parameters
Steps:
Steps:
Steps:
If the test email is successful a message will pop up.
Step 3: Design the Email Message in the Workflow tool
In the example. I've created a simple basic Purchase Order workflow in the Procurement and Sourcing module.
Steps:
领英推荐
Request to Approve Purchase Order (%Purchase orders.PurchId%)
A purchase order has just been submitted for your approval, kindly review it.
Company Name: Test
Purchase Order: %Purchase orders.PurchId%
Vendor Name: %Purchase orders.PurchName%
Amount: %Purchase orders.Invoice amount% Rs
Procurement Category: %Purchase orders.Purchase order lines.ProcurementCategory%
Kindly click on the %Workflow.Link to web% to view it.
You can also design an email message for different events and assign a user.
Once done, make sure to save and activate the workflows. If you would like to learn more about the placeholders, search for the Microsoft Doc.
Step 4: Enable Workflow notifications from User Settings
Navigation: System Administration > Users > Users
The above sender email tab is a great feature for testing purposes. It basically overrides the user email address and sends emails to the address defined in that tab. Make sure to select the email provider ID.
Checkmark "Send notification in email" so that the user starts receiving workflow emails. This should be enabled for all users in the workflow.
Step 5: Activate Workflow and Email distributor Batch Jobs
Workflow Batch Job
Navigation: System administration > Workflow > Workflow infrastructure configuration
Email Distributor Batch
Navigation: System administration > Periodic Tasks > Email Processing > Email Distributor Batch
Outcome
The outcome of the configuration above can be seen from the screenshot below, which contains an example of the e-mail that is received by an approver, once a user has submitted the work item.
Hope you learned from this article. Keep learning and sharing.
Feel free to contact me in case of any queries.
Muhammad Ahmad Khan
D365-Finance & Operations|Business Analyst| ERP Implementation
9 个月Hi Muhammad, Thanks for this detailed article and making the tricky workflow email configuration more logical. However, while following your steps and adding "ChangeRequest" as an additional activity to get the notification, I faced an issue of receiving a couple of emails for a Change request to the originator of the workflow. Out of those couple of emails, the first email was as intended based on the tool template + workflow tool configuration. However, the second email has not been configured anywhere in the system. Let me know if you know the RC for this and if you have any resolution about the mentioned issue.
Microsoft Certified D365 & AX2012 F&O Developer | Commerce | Technical Consultant Specializing in #D365, #AX2012, #Commerce, and #ERP solutions, I bring expertise in #SQL, #PowerBI, and #AzureDevOps.
1 年Muhammad Ahmad Khan very Helpful Thanks!
A.F. Solution Architect》MCP 》MS Dynamics AX & D365 F&O 》Supply Chain Professional》Gold Medalist 》Hospital & Lab MIS 》Retail Applications 》Integrations 》Customized ERP 》Power Automates
1 年Buddy thanks for this article. Keep posting and helping!
Digitalization Expert | Solution Architect | Business Analyst | Functional Consultant - Microsoft Dynamics 365 Finance & Operations | Business Central | Business Applications at Techvista Qatar
1 年Perfectly sequenced and stepped ! Best Wishes.
Technical lead
1 年Thanks for posting Muhammad Ahmad Khan very useful content. Keeping posting