Add the Approval Status Field to the Product Table

Now that we have a Base Enumeration that defines all of the possible states for the approval of the products, we need to add it to the Product table so that we can track the status of the records.

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 add a new field to the InventTable based off the approval status, follow these steps:

  1. Open up the AOT workspace so that you have both the Workflow Project and the AOT tree displayed.
  2. Within the AOT tree, open up the Tables group within the Data Dictionary and find the InventTable table.
  3. Drag the InventTable table over to the ProductManagementWorkflows project.
  4. Then drag the ProductApprStatus base enumeration that you just created up into the Fields group.
  5. Select the new ProductApprStatus field within the Fields group of the InventTable table, and update the Label property to be Product Approval Status.
  6. After you have done that, just save the project.

Leave a Reply

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

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

Facebook photo

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

Connecting to %s

%d bloggers like this: