In an illustrative example, an order processor changes a line from cases to eaches in the ERP. The item and displayed quantity stay the same. The confirmation email is regenerated, but its PDF still shows cases. A quantity-only check passes. The customer sees two different descriptions of what will ship.
Check the sales order confirmation email against the approved ERP order before it leaves the send queue. Include the subject and every attachment that carries order facts. Compare each visible line with its ERP counterpart and hold the whole message when anything material differs or cannot be checked. The hold needs to tell a sales operations reviewer which line differs and where the customer would see it.
Use the ERP record that authorizes the confirmation
Start with one route the team uses today. Find the event that makes the order eligible for confirmation, the report or template that prepares it, and the job that sends it. Check whether creating the confirmation also starts a built-in notification. Dynamics 365 Commerce, for example, uses generation of the order confirmation document as the event for its order-confirmed notification. A check that runs after an active notification path has already handed off the email is too late. Microsoft Learn, transactional email templates in Dynamics 365 Commerce
Read the approved order in the correct selling entity. Capture its identifier, revision or equivalent snapshot, eligible status, customer account, and the relevant header, line and schedule fields. Identify the approved recipient through your account or order contact rules. A valid order sent to the wrong buying office still fails the check. Have order entry resolve any dispute about what the customer originally requested. That work belongs upstream of the outbound confirmation. From Customer PO Email to ERP Sales Order
If the ERP already generates a confirmation report, use that as the baseline. Business Central documents a standard report for generating sales order confirmations. Test how the report, email body and recipient list are assembled in your installation, especially when a separate mailer adds the attachment or staff can edit the body. Microsoft Learn, Standard Sales - Order Conf. report
Match each visible line to the ERP
Carry the ERP line identifier and, where applicable, the schedule identifier through generation so the checker can explain where a displayed row came from. Use the line identity to pair records and then verify the fields the customer sees. A SKU can repeat on separate lines with different prices or delivery schedules. Position can change when the heading, a comment or a freight line is added. Business Central’s sales order line API illustrates the distinction. It exposes a line ID and sequence alongside item and variant IDs, units, quantity, unit price and expected shipment date. Microsoft Learn, Business Central salesOrderLine resource
Write the comparison rules for each template. Specify where a field must appear, how it may be formatted and what to do if it differs. An email that only points to its attachment may omit the order lines. A body that summarizes those lines has to agree with the attachment and the ERP.
| Compare | What should trigger a hold |
|---|---|
| Order reference, buying account, recipient and ship-to | A reference to a different order, an address from a different location, or a recipient outside the approved list for this order. |
| Item, variant, quantity and unit | A missing, duplicated or extra row, a different variant, or a quantity paired with the wrong unit. In the illustrative case, the PDF fails on the unit even though the quantity matches. |
| Price basis, discounts, charges, tax and totals | A unit price shown on a different basis, a net amount labeled as gross, or a currency that disagrees with the order. Matching totals leave individual pricing errors possible. |
| Schedule and date wording | A requested date presented as a commitment, a ship date labeled as a delivery date, or one date shown for a line with several promised schedules. |
Allow display conversions only when the template has explicit rules for them. Parse a localized decimal using the template’s locale, compare decimal amounts at the ERP’s configured precision, and verify that monetary labels still describe the amount shown. Where the customer-facing item number differs from the ERP SKU, check the approved mapping for that account. Missing mappings, unknown units and ambiguous row matches go to review.
Verify the email and PDF that will actually go out
Render the final subject, body and attachments before deciding whether to send. A comparison of the template inputs alone can miss a stale file, a dropped table row on a page break or a sentence added after the line table was generated. For a controlled template, check the rendered fields with a parser and test what is visible in supported email clients and PDF layouts when the template changes.
If a legacy PDF or free-text body needs an extraction model, have it propose values with the source passage or page. Apply deterministic rules to the values you can verify. Route unreadable evidence and any unsupported delivery or pricing commitment to a person. Keep quantities, dates and other commitments in template fields or approved wording wherever possible. The model can help find a statement or summarize a mismatch for the queue. Give release authority to the check and the authorized reviewer.
Put the hold in the sales operations queue
Show the order, revision, ERP line and field, expected value, outgoing value, and where the mismatch appears. Let the reviewer open the rendered message at that spot and inspect the order with their normal access. Assign template and attachment problems to the confirmation workflow owner. Route disagreements about price, stock commitments or ship-to details to the people authorized to resolve them.
If the ERP order itself needs correction, make the change through the ordinary order amendment process. Then regenerate the email and rerun the checks. If a reviewer must handle wording that the checker cannot interpret, record the field and reason for the manual decision, and apply that decision to the exact message and order revision they reviewed. Editing the email, replacing a PDF or changing a recipient starts a fresh check.
Save the checked payload in the send queue so the mailer uses the same subject, body, recipients and files that passed. Recheck the order’s eligibility and revision when the send job claims the message. If ERP updates and release can race, coordinate them at the order or confirmation release step, and handle later order changes through a revised confirmation. If a send attempt times out, check whether the mail service accepted it. Reuse the same idempotency key if the service supports one. If acceptance is uncertain and a retry could send a duplicate, hand the case to a person for reconciliation. How to Prevent ERP Double Posting When a Request Retries
Test the check before letting it release messages
Run one order type and template through the check alongside the current staff review. Give it historical confirmations paired with the ERP revision available when each was prepared. Include a clean match, repeated items with different dates, a stale PDF, an unauthorized recipient and an order amended while the message is queued. Judge both the send decision and whether the hold directs the reviewer to the right field. Turn Historical Operations Cases Into an AI Regression Test Set
For the pilot, track mismatches caught, material discrepancies missed, valid messages held and time spent resolving holds. A frequent false hold on a display format may need a template fix. A missed change to a promised date calls for keeping that path under human review until the check can catch it. Start automatic release with the combinations the team has tested, and keep staff review for unfamiliar layouts or order types.
Sources
- Microsoft Learn, transactional email templates in Dynamics 365 Commerce documents the order-confirmed notification event and placeholders for order and line data.
- Microsoft Learn, Standard Sales - Order Conf. report documents the Business Central report that generates sales order confirmations.
- Microsoft Learn, Business Central salesOrderLine resource documents line identity, item and variant fields, units, quantities, amounts and expected shipment date.
Audit one confirmation workflow
Bring a recent confirmation email, its attachment and the ERP order revision it was meant to reflect. Insonl can map the send path with you and identify which mismatches a check could catch and which ones your team needs to resolve. The audit is free. Insonl charges only for follow-on work you choose. Request a free AI workflow audit
