Purchase Orders Raised Without Their Purchase Agreement: Enforcing the Link in Dynamics 365
Why orders bypass the agreement, how to make matching automatic, when to flag or block unlinked orders, and the commitment report that protects rebates.
When buyers raise purchase orders without the purchase agreement, Dynamics 365 Supply Chain Management cannot count those lines against the agreement, so commitments look unfulfilled and rebates tied to agreement volume are lost. Fix it in three layers. First, make matching automatic: release orders from the agreement, and let the system find and attach a valid agreement on order lines for the vendor and item. Second, add a policy that flags unlinked orders in workflow, or blocks confirmation through a small X++ validation when an agreement exists. Third, give procurement a commitment report per vendor showing agreed, released, invoiced and unlinked spend, reviewed monthly before the rebate period closes.
Why do purchase orders end up without their purchase agreement?
Because nothing in a standard setup forces the link. A buyer under time pressure creates a purchase order from the vendor list, copies an old order, or converts a requisition that never referenced the agreement. The price may even be right, because trade agreements give the same price, so nobody notices. The order is received and invoiced normally, and only the agreement shows the gap: its released quantity or value stays low, the vendor's statement says you bought more than the agreement records, and any rebate or tier that depends on agreement volume is calculated on the smaller figure.
Other common causes are agreements that expired and were not renewed, agreements for an item category when buyers order a new item outside it, and integrations or planned order firming that create orders without an agreement reference.
How does Dynamics 365 connect a purchase order to a purchase agreement?
A purchase agreement in Supply Chain Management commits you to buy a quantity or value of products, a value within a product category, or a total value from a vendor over a period. Orders count toward that commitment only when their lines reference the agreement. There are three ways that happens.
| Route | How it works | When it fits |
|---|---|---|
| Release from the agreement | The buyer opens the agreement and releases a purchase order from its lines, so every line carries the reference | Planned call-offs and scheduled deliveries |
| Attach on the order line | An agreement is selected or found for an existing order line, either manually or by the system when the line is created | Orders started from the vendor or a requisition |
| Agreement on the order header | The order is created with the agreement chosen up front, and lines default from it | Buyers who always order against one agreement per vendor |
- The parameters that control automatic agreement search and attachment sit in procurement and sourcing parameters, and their labels have changed between versions. Check them in a sandbox before relying on the behaviour.
How do you make agreement matching automatic for buyers?
Remove the choice from the buyer where you can. Turn on the parameter that searches for a valid agreement when an order line is created, so the system attaches it when the vendor, item or category, site and date match. Make the agreement the source for planned volume: when master planning firms planned purchase orders for agreement items, test whether the firmed orders carry the agreement in your version, and if not, firm them through a release from the agreement instead.
Matching only works on clean agreements. Two overlapping agreements for the same vendor and item make the search ambiguous; an agreement whose validity ended yesterday attaches nothing. Close expired agreements, renew on time, and keep one active agreement per vendor, item and period unless there is a reason not to.
Should unlinked purchase orders be flagged or blocked?
Start by flagging, then block where the data is clean. A hard block on day one stops urgent orders for items whose agreement setup is still wrong, and buyers learn to work around it. A flag in workflow puts every unlinked order in front of an approver with the reason, and the exceptions teach you which agreements need fixing.
| Control | How it is built | Strength |
|---|---|---|
| Workflow condition | A condition in the purchase order workflow routes orders whose lines have no agreement reference, while a matching agreement exists, to a procurement approver | Standard configuration, visible and audited, does not stop urgent orders |
| Purchasing policies | Policy rules for catalogs, categories and vendors, aimed mainly at purchase requisitions | Useful where orders come from requisitions, does not cover orders keyed directly |
| X++ validation | A small extension that refuses to confirm an order line without an agreement when a valid agreement exists for the vendor and item, with an override reason for named roles | Real enforcement, needs development, tests and an owner |
| Daily exception report | A list of unlinked lines sent to buyers and their manager | Quick to set up, relies on people acting on it |
- Procurement approval design as a whole, including delegation and thresholds, is covered on procurement workflow audit.
What does the X++ validation need to handle?
Keep it narrow. The rule fires on confirmation, not on every keystroke, so drafts are free. It looks for an active agreement for the vendor, item or procurement category, legal entity and order date, and only blocks when one exists and the line does not reference it. A named role can override with a reason code that is stored on the line, so urgent orders still go out and the override shows up in the report.
The extension is built in your own model with event handlers, not overlayering, tested in a sandbox with your agreement data, and documented with an owner on your side. Lines created by integrations or by firming planned orders get the same check, or an explicit exception that is logged.
How do you build a commitment report per vendor?
Procurement needs one view that answers three questions per vendor: how much did we commit, how much have we bought against it, and how much did we buy outside it. The agreement lines already hold released and remaining quantities or amounts; the report adds the spend that bypassed the agreement by joining purchase order and vendor invoice lines for the same vendor and items with no agreement reference.
| Column | Source |
|---|---|
| Committed quantity or value | Purchase agreement lines |
| Released and remaining | Agreement line fulfilment fields and released order lines |
| Received and invoiced against the agreement | Product receipt and vendor invoice lines that reference the agreement |
| Unlinked spend on agreement items | Invoiced lines for the same vendor and items or categories without an agreement reference |
| Days to agreement end | Agreement validity dates |
- Build it as a Power BI report over exported data or as an inquiry in Finance and Operations, and run it monthly with the buyers who own each vendor.
How do rebates relate to the agreement link?
That depends on how the rebate is defined, which is why the link matters. Where a vendor contract pays a rebate on volume bought under the agreement, the vendor counts what your orders say, and unlinked orders are easy for them to exclude. Where rebates are calculated in Dynamics 365 with the Rebate management module, the deal defines which transactions qualify, and a deal scoped to agreement lines misses the unlinked ones in the same way.
Check how each rebate is calculated and claimed before choosing the control: by agreement, by vendor and item, or by invoice totals. For any open period, attach agreements to open order lines before invoicing, and give whoever claims the rebate the unlinked spend figure from the commitment report so it can be raised with the vendor. The contract terms decide what can be recovered; we report the numbers, not the legal position.
What is the step by step plan to enforce the link?
Run it in this order, in a sandbox copy of production first, then live at the start of a rebate period.
| Step | What to do |
|---|---|
| 1. Measure the leak | List purchase order lines from the last rebate period where the vendor and item or category have an active purchase agreement but the line carries no agreement reference, grouped by vendor and buyer. |
| 2. Clean the agreements | Check that every active agreement has the right commitment type, validity dates, vendor account, items or categories and prices, and that expired agreements are closed so matching does not pick them. |
| 3. Turn on automatic matching | Set the procurement parameters so a valid agreement is searched for and attached when order lines are created, and train buyers to release orders from the agreement where the volume is planned. |
| 4. Add the enforcement rule | Route orders without an agreement reference to an approver through a purchase order workflow condition, or add an X++ validation that blocks confirmation when a matching agreement exists and none is attached. |
| 5. Attach agreements to open orders | For open lines that should have used an agreement, attach it on the line before receipt and invoicing, so they count toward fulfilment for the current period. |
| 6. Build the commitment report | Report per vendor and agreement the committed, released, received, invoiced and remaining amounts, plus spend on the same items that bypassed the agreement. |
| 7. Review before the rebate period closes | Run the report monthly with procurement, chase the unlinked spend with the buyers involved, and hand the figures to whoever claims the rebate. |
What does Solzet deliver for purchase agreement enforcement in Dynamics 365?
Solzet measures the unlinked spend, cleans the agreements, configures automatic matching, adds the workflow condition and, where you need real enforcement, a small X++ validation with an override reason, and builds the commitment report per vendor. Our own senior consultants and X++ developers do the work, tested in a sandbox copy of production and handed over with documentation. The service line is Dynamics 365 Supply Chain Management; where planning should respect the same agreements, see supplier allocation in Planning Optimization.
Where the vendor and customer relationships also live in a CRM, buyers who would rather not carry Microsoft licensing for it can choose a custom CRM. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why are purchase orders in Dynamics 365 not linked to the purchase agreement?
Usually because buyers create orders from the vendor or a requisition and nothing forces the link, because agreements have expired or overlap, or because firmed planned orders and integrations create orders without an agreement reference.
Can Dynamics 365 attach a purchase agreement to an order line automatically?
Yes, procurement parameters can search for a valid agreement when an order line is created and attach it when vendor, item or category and dates match. Parameter names vary by version, so test the behaviour in a sandbox.
Can I attach a purchase agreement to an existing purchase order?
Yes, an agreement can be attached to an existing order line, ideally before receipt and invoicing so the line counts toward the agreement fulfilment for the period.
How do I block purchase orders that ignore an existing agreement?
Standard configuration can flag them through a purchase order workflow condition. A hard block needs a small X++ validation that refuses confirmation when a matching agreement exists and none is attached, with an override reason for named roles.
Do purchasing policies stop orders without an agreement?
Only partly. Purchasing policy rules are aimed mainly at purchase requisitions, catalogs and categories. Orders keyed directly need a workflow condition or a validation extension.
How do I see agreement fulfilment per vendor?
Agreement lines show released and remaining quantities or amounts. A commitment report adds received, invoiced and unlinked spend on the same items per vendor, built in Power BI or as an inquiry.
Does Solzet build purchase agreement controls in Dynamics 365?
Yes. We clean agreements, configure automatic matching, add the workflow condition or an X++ validation, and build the commitment report per vendor, tested in a sandbox copy first.
Where should you go next?
Dynamics 365 Supply Chain Management
Implementation, X++ extensions, integrations and support.
Supplier allocation in Planning Optimization
Planning with the supply your vendors actually committed.
Procurement workflow audit
Approval design, delegation and thresholds in Finance and Operations.
Order confirmations without the vendor portal
Getting supplier confirmations into Dynamics 365 by supplier tier.
Vendor evaluation and certificate tracking
Keeping vendor data reliable for procurement decisions.
Finance and Operations
Finance, Supply Chain Management and the rest of the family.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.