Developing a Product Approval Workflow in Dynamics AX 2012

There are a lot of workflow templates that are delivered with Dynamics AX 2012, but that doesn’t mean that those are the only ones that you can use.  Developing new workflow templates and actions are pretty straight forward and you can easily extend out the system to incorporate other workflow scenarios that have not been added yet.

In this blueprint we will work through one example and show you how you can develop your own workflow process for product approvals that allow you to submit, track and approve the product review process.

Here are all of the topics that are included in this blueprint:

Bonus Book Content

  • Configuring the Workflow Processors to Run Automatically
  • Creating a Class to Manually Run Workflow Processes
  • Creating a New Product Approval Workflow Task Element
  • Relabeling the Approval Action Menu Item Labels
  • Update the Workflow Approval Element Event Handlers
  • Add the Product Approval Element to the Workflow Template
  • Using the Product Approval Element in the Approval Workflow
  • Performing Product Approval Using the Custom Approval Element

In this walkthrough we showed how you can create your own workflow templates and activities.  The product approval process could easily be extended out to include more steps and approvals for the products, allowing for it to be used for new product introduction and development.

This does not just have to apply to product approvals though, you can use exactly the same process to create workflow templates for the approval of other areas where the approval processes may be needed such as Customer, Vendors and BOMS.  All you need to do is change the base tables and forms that are being referenced and the process will be almost identical.

You can also extend out the approval logic to update more information through the workflows like flags for allowing the use of the record after it has been activated, and also incorporating information that has been gathered during the process.  If you want to get really creative, you can even create custom workflow elements that incorporate other technologies like Outlook for the creation of tasks and appointments.

Don’t be afraid to create new workflow templates, once you have built them, then they will provide a much better way to streamline your business processes, and the hour or so that you spend creating them will be recouped quickly by the removal of the manual workarounds that would have been used without them.

Advertisements
8 comments
  1. Firefox said:

    Help me!
    When i click Actions button i only see Cancel and View history menu item. Why other menu items don’t show (for ex. Approve…)

    • Did you create the task element for the workflow? Also, I think I remember that you need to run a CIL after Yu finish the coding to get the actions to register. Murray.

      • Firefox said:

        after setting security key for menuitems and rerun workflow infrastructure config, all working well 🙂
        But i have one more question: i need to create workflow for setting value of Customer.Blocked field (this is enum with 6 elements). How to start it?

  2. Firefox said:

    Solved! 🙂

  3. Rajat said:

    Hi,
    i followed all the steps mentioned by you, but still unable to see the workflow ribbon on the product details page.
    can you please let me know what am i missing

  4. Amrendra Pal Singh said:

    Hi Murray,
    I followed all the steps and also did a full CIL compile but I am unable to view the workflow ribbon on the product details page. Also if select ProductApprovalSubmitManager class, right-click and select open it gives me an error.

    Args object not initialized.

    Stack trace

    (C)\Classes\ProductApprovalSubmitManager\main – line 4

    Please let me know if I have missed a step.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: