Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Purchasing Policies being ignored.

(1) ShareShare
ReportReport
Posted on by 52
Good afternoon,
 
I'm having some trouble getting a Purchasing policy to work. I've added a Purchase order creation and demand consolodation rule to the policy with an effective date of 01/12/2020. Within that policy, on manual purchase order creation, I've set Automatically create purchase orders and Run automatic purchase order creation. When I create a Purchase Requisition and Approve it through Workflow, no Purchase order is created, the PR is set to Approved, and the PR lines are all set to Manual.
 
I have also written a quick bit of code to check an existing PR and it always returns Manual, so I think we can rule out the workflow:
 
SysPolicies::clearPolicyCache();PurchReqId purchReqId = 'PR000352';while select purchReqTable    where purchReqTable.PurchReqId == purchReqIdjoin purchReqLine    where purchReqLine.PurchReqTable == purchReqTable.RecId{    if (PurchReqPurchaseOrderGenerationRule::isManualCreatePurchaseOrderStatic(purchReqLine))    {        Info(/Manual/);    }    else    {        Info(/Automatic/);    }}
Can anyone suggest where I should check further to see what is causing this to be ignored?
 
Thanks in advance
  • Phil Matthews Profile Picture
    Phil Matthews 52 on at
    Purchasing Policies being ignored.
    Hi Sagar,
     
    Yes, they all do.
  • Suggested answer
    sagar_patil Profile Picture
    sagar_patil 655 Super User 2025 Season 1 on at
    Purchasing Policies being ignored.
    Hi,
     
    does all the PR lines have the “Vendor Account” attached to them? 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans