web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Purchase Order Re-approval rule is auto approving everything on first submission

(0) ShareShare
ReportReport
Posted on by

I have set up a purchasing policy with a re-approval rule. In the policy I have selected several fields from the Purchase line that are subject to re-approval, for example PurchaseLine Unit Price.

I have created a Purchase order line workflow and in this I have added a condition that checks whether the line requires re-approval. The coniditon is:

"Where Purchase order lines.Requires purchase order re-approval is value No"


The problem is that when I create a new Purchase order all lines are being automatically approved, the condition is evaluating to TRUE on the first submission to workflow. When I amend the PO after this and re-submit it the workflow behaves correctly, unchanged lines are auto-approves and changed lines are forced for re-approval.

Does anyone know why the first submission is auto approving?

AX2102 R3

 

2248.3.png

Re-Approval Policy

5852.1.png

Purchase order line workflow

7028.2.png

Condition

*This post is locked for comments

I have the same question (0)
  • John.Holbrook Profile Picture
    on at

    Mark

    You have answered your own question , "the condition is evaluating to TRUE on the first submission to workflow"

    The PO lines when first created do not need re-approval so will evaluate to true,

    Try a different rule

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Mark Dillon,

    Is your PO line workflow linked and bound into a PO workflow?

    Not sure if the condition you specified is going to work at all because the purchline table does not include a reapproval field that is set to yes or no.

    Probably test the condition first through the test button right above your condition. If it does not, you might have to get a developer involved.

    Best regards,

    Ludwig

  • Suggested answer
    NitinPatil Profile Picture
    10 on at

    Hi Mark,

    Not sure if you have already found a solution but this might be helpful.

    If I understand correctly, you wish to control the workflow for re-approvals of your purchase orders i.e. you wish to assign it to designated approvers only if certain critical fields are updated such as price, quantity etc. However if users have updated non critical (depends on each organization rule) information such delivery dates, financial dimensions, warehouse code etc., you wish the order should be auto-approved. Is that correct?

    If yes, then you have rightly configured the purchasing policy to define critical fields which should trigger re-approval if updated.

    Next thing that you can do is define a first level conditional decision under your workflow and define the condition as:

     

    0172.Workflow1.JPG

    System evaluates this condition with your purchase order re-approval policy. If fields mentioned within policy are updated then it will return the value as "True" otherwise "False". So if the value is True, you can choose the next step in your workflow as your existing conditions and if the returned value is "false" you can choose to "End" the workflow.

    0172.Workflow1.JPG

    This condition evaluates to "True" when you newly create a Purchase Order. So your standard workflow conditions will get evaluated for new purchase orders. In case of orders which are edited, this condition evaluates changes with purchasing policy and returns True / False based on fields specified therein.

    Hope this help!

    Best Regards,

    Nitin

  • Suggested answer
    dhanerwal Profile Picture
    5 on at

    Perfect answer. working smoothly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans