Workflow Approvals via E-Mail in Microsoft Dynamics AX 2012 R2

Workflow Approvals via E-Mail in Microsoft Dynamics AX 2012 R2

!! Microsoft Dynamics AX has only been getting Stronger!!

Thanks to Microsoft Dynamics AX 2012 R2 for its huge range of new exciting enhancements to the functionalities and capabilities.

Most of us have always been looking for the Microsoft dynamics AX workflows to have direct integration with the outlook email engine. I have come across many situations where customers wanted to have direct approval or rejection options integrated within the emails which they receive from Dynamics AX workflow engine regarding documents pending for their reviews in AX.

AX 2012

The R2 release of Microsoft Dynamics AX 2012 makes it possible now.

Read the the white paper at the Microsoft Download Center to get detailed steps and Procedure.

Regards

Sandeep

Project Invoice Proposal Approvals in Microsoft Dynamics AX 2012 R2

Project Invoice Proposal Approvals in Microsoft Dynamics AX 2012 R2

Hello Everyone,

Here is a quick post on an update on the approval process of project invoice proposals in Microsoft Dynamics AX 2012 R2 release.

In the AX 2012 feature pack release(Until Cumulative Update 4), the project invoice proposals were always forced or required to go through the workflow for approval.

I came across many situations where customers did not want their invoice proposals to go through the workflow approval process as it is not required as per their business policies and rather have them posted directly. But in AX 2012 feature pack release, there was no way to have the invoice proposals not go through workflow approval.

Microsoft has introduced a design change in AX 2012 R2 release, by which we can now have project invoice proposals not routed through the review and approval process in workflow.

If you unmark the “Enable processing invoice proposals in workflow checkbox”, then you can directly post the invoice proposals without having it to go through the workflow process.

image

Pretty good and much needed change !!

Regards

Sandeep

Automated Tasks in Workflows in Microsoft Dynamics AX 2012

Automated Tasks in Workflows in Microsoft Dynamics AX 2012

The workflow engine of Microsoft Dynamics AX ERP has been one of the very important and capable tool over the different versions. It helps users to automate and streamline several business processes in the organization across several departments. Now, with Microsoft Dynamics AX 2012, the workflow engine gets even more stronger with the introduction of additional capabilities such as,

  • Easy-to-use graphical workflow components which allows users to create new workflows with easy drag and drops.
  • Parallel activities enables multiple users to take action on an workflow item simultaneously.
  • Sub-workflows works seamlessly under the main workflow.
  • Automated tasks, which if used properly, can prove to be very useful and efficient.

Microsoft Dynamics AX-Powerfully Simple

Recently I got chance to learn the automated tasks in AX and in today’s post, I will explain how we can configure automated tasks in a workflow and how it can help business in real time.

Tasks such as posting transactions and generating reports or verifying results can run automatically or require an user intervention in Dynamics AX. In AX 2012, a workflow can contain both manual tasks(Requires user intervention) and automated tasks(Does not require user intervention).

AX 2012 provides few automated tasks out of the box in some the workflows such as expense reports, budget entry workflow etc. However, you can create automated tasks as per your requirements, with a little help from your technical team.

Let us assume a scenario, where we want to automate the “Credit limit check” for customers while approving Sales orders or Free text invoices, so that the automated task will complete the credit check and send the result to the workflow owner/user for them to take further actions.

Below are the high level steps which you can follow to create a new automated task.

  1. Open AOT.
  2. Expand the Workflow node and go to Automated tasks node.
  3. Right click the automated tasks node and click New automated task.
  4. Now, right click the newly created automated task and go to properties.
  5. Set Name, Label , configuration keys.
  6. For the Document property, select the workflow document for which you need this automated task.
  7. In the Execution event handler property, select the event handler class which will actually run the Customer Credit Limit check. Here you can have your technical team’s help to create the Execution event handler class for you. Once you have the event handler class ready, select the same, in this property.
  8. And you are done.

image

For this demonstration in the post, I have not created the Event handler class for customer credit limit check. So, I will use an existing automated task (Automatic posting of expense reports) and demonstrate how it can be used in workflows.

Follow the steps below to configure an automated task in a workflow.

  1. Go to Travel and Expense Management > Setup > Travel and Expense Management workflows.
  2. Create new Expense report workflow.
  3. Notice that the expense report workflow which comes out of the box, does not have the automated task, but you can configure it in the Workflow type.
  4. To do this, go the AOT > Workflow > Workflow Types and select the TrvDocumentTemplate.
  5. Expand the Supported elements node and drag and drop the automated task here.
  6. See the screen below where I have configured the automated task of Posting the expense report.

image

7.  Now, see the screen below which shows one very simple workflow which I have configured with the automated task is it.

image

8. When the workflow is run and it gets reviewed and approved, the workflow will be able to post the expense report automatically without requiring user intervention.

9. Also, note that there will be no outcome after an automated task in run inside the workflow. The status will just changed to “Completed”. If you need outcomes for automated tasks, then you can write custom code with help from technical team.

So, with few easy steps and custom code, Microsoft Dynamics AX 2012 makes it easy to automate lot of tasks in the business process which may not require an intervention.

Hope this post will be helpful. Do not hesitate to contact  if you need help on this.

Thanks

Sandeep