views:

28

answers:

1

We are trying to add an Approval Workflow for new Vendors created in Dynamics Ax.

But I have no clue how to go about implementing this.

I managed to create a workflow using this Workflow for Dummies Wizard

But it seems that it only starts after the Vendor record is created, and we need it to prevent the record from being used before it's gone through approval.

How would we make the necessary changes to Ax to do this?

A: 

You will need a status field on your Vendor "Approval status", you probably already have.

Then you will have to check the vendor status at "appropriate" times, like when posting.

Check VendTable.checkAccountBlocked and implement a similar check, maybe just make the change there.

Jan B. Kjeldsen
@Jan B. Kjeldsen. But, if it's just a status field set to blocked we can't keep using the pre-edited version until the edit is approved. And if it's rejected, how do we roll back to the pre-edited version
Chad
It is a new field on the vendor. If the approval is about new vendors, then there is no "pre-edit".Or is every change on vendor to go through approval? In that case you will have to support versioning of vendor data (in a separate table).
Jan B. Kjeldsen
Both, new and edited
Chad