Enabling Workflow Submission on the Product Details Form

In order for the workflow controls to show up on the forms, you need to enable them to be used by workflows, and also associate the default workflow type to the form. This stops workflow management steps from showing up randomly on forms, and also allows you to control who is able to act upon workflows.

NOTE: This is part of theĀ Developing a Product Approval Workflow in Dynamics AX 2012 blog series where we show how to develop a completely new workflow to manage the new product approval process. If you want to see all of the other posts in this series, click here.

How to do it…

To enable workflows on particular forms, follow these steps:

  1. Open up the AOT workspace so that you have both the ProductApprovalWFType Project and the AOT tree displayed. Within the AOT tree, open up the Forms group within the Data Dictionary and find the EcoResProductDetailsExtended form.
  2. Drag the EcoResProductDetailsExtended form from the AOT browser over to the ProductApprovalWFType project.
  3. Expand out the EcoResProductDetailsExtended form definition and open the Designs section. Select the DesignList design to enable workflow on that view.
  4. In the properties for the DesignList change the WorkflowEnabled property to Yes.
  5. Select the InventTable table from the WorkflowDatasource dropdown box.
  6. And then from the WorkflowType dropdown box, select your workflow type that is associated with the InventTable table.
  7. You should be able to save the project now and not have any errors.
Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: