> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ingestly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm a purchase order

> Match a vendor order confirmation to its purchase order and write the confirmed quantities, prices and dates to Business Central.

The **Confirm a purchase order** starter workflow takes an uploaded vendor order confirmation, finds the purchase order it names in Microsoft Dynamics 365 Business Central, checks the confirmed quantities and prices against it, and amends the purchase order when everything is within tolerance. Differences open a review task.

## Before you start

* A [Business Central connector](/admin/connectors#business-central-client-credentials) with the **Ingestly Connector** extension installed, **Enable purchase order amendments** turned on and the **Ingestly Purchase Amendment** permission set assigned.
* Purchase orders in Business Central with item lines the vendor identifies by your item number (or the vendor item number, which you can pair instead under **Matching**).

## Create the workflow

1. Open the workflow editor and click **Use template**.
2. Click **Confirm a purchase order from a vendor confirmation**.
3. **Connection:** choose the Business Central connector. The dialog reports **Purchase order confirmations are supported** once the extension and permission set are in place.
4. **Matching:** optionally choose a reviewer, set the **Allowed quantity reduction (%)** (10 by default), and decide whether to **Require every purchase order line to be confirmed**.
5. **Preview:** check the five steps, then click **Apply template**. Applying replaces the canvas in one undoable edit; nothing is written to Business Central.

## What the template builds

| Step | Node                                 | What it does                                                                                                                          |
| ---- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| 1    | Upload order confirmation            | Accepts the vendor's confirmation document                                                                                            |
| 2    | Extract confirmation data            | Extracts the PO number, vendor order number, date, currency, total and the lines (item, quantity, unit, price, expected receipt date) |
| 3    | Find purchase order                  | Looks up `purchaseOrders` by number with its lines. A missing or ambiguous purchase order stops the run                               |
| 4    | Match confirmation to purchase order | The [Order confirmation](/nodes/reconcile#order-confirmation) profile with **Review differences** on                                  |
| 5    | Confirm purchase order               | The [Confirm Purchase Order](/nodes/business-central#confirm-purchase-order) operation                                                |

Example: 100 units ordered. A confirmation for 95 within a 10% allowance amends the line to 95 and the run completes. A confirmation for 80 opens a review where you accept the confirmed quantity, keep the purchase order value, or correct the extracted value. A confirmation for 105 also opens a review, but a quantity above the ordered quantity can never be accepted: keep the purchase order value or change the order in Business Central.

<Tip>
  Save and test the workflow before activating it. A test run stops before the last node and reports that confirming a purchase order is unavailable in preview and single-step tests, so a test never changes Business Central.
</Tip>

## Related

<CardGroup cols={2}>
  <Card title="Reconcile" icon="scale-balanced" href="/nodes/reconcile#order-confirmation">
    The Order confirmation profile and its rules
  </Card>

  <Card title="Business Central" icon="building" href="/nodes/business-central#confirm-purchase-order">
    The Confirm Purchase Order operation
  </Card>

  <Card title="Review queue" icon="user-check" href="/reviews/queue#order-confirmation-review">
    What a reviewer can do with a confirmation
  </Card>

  <Card title="Templates" icon="layer-group" href="/templates">
    Browse, save and reuse templates
  </Card>
</CardGroup>
