--- title: "Purchase Order Confirmation" slug: "bc-purchase-order-confirmation" description: "Learn how to send purchase order confirmation notifications using XML, email setup, and Microsoft Dynamics 365 Business Central for efficient transactions." tags: ["BC", "BIS", "Business Central", "Business Integration Solutions", "Walkthrough"] updated: 2026-06-25T09:59:05Z published: 2026-06-25T09:59:05Z canonical: "docs.staedean.com/bc-purchase-order-confirmation" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Purchase order confirmation This walkthrough provides an overview of how to send a purchase order confirmation notification. In business, an order is a stated intention to engage in a commercial transaction for specific products or services. From a buyer's point of view, it expresses the intention to buy and is called a purchase order. ## Prerequisites | Template | Description | Default report | | --- | --- | --- | | NM_PO.CONFIRM | Notification Management Template: Purchase Order Confirmation | Order (405) | ## Story This connection uses the following pipeline elements: - The **Record Change Event** triggers on **Modify** and links to the internal document NM_PURCHORDERTRIGG, which contains two fields: the **No.** and **Status** fields from the Purchase Header table. When a purchase order modifies, the **Record Change Event** detects it. - The **XML Generator** activity creates an XML file based on an internal document, but only for **Released** purchase orders. - The **Splitter** activity creates one message for each purchase order. - The **XML Minifier** activity cleans the message of empty nodes and blocks that are not mandatory. - The message passes through the **XMLSchemaValidator**, which verifies that the XML message respects the internal document structure. - The **Header Mapper** activity adds the headers to the message body, filling in the recipients and email subject. - The **XML to HTML Translator** activity creates an HTML email message based on your branding templates. You can also configure an HTML body manually. - The **Attachment Generator** activity adds attachments to the email message based on standard Microsoft Microsoft Dynamics 365 Business Central report functionality. - The **Email Writer** endpoint sends the email. - The internal document NM_PURCHORDER contains all the information needed to configure the **XML Generator** activity, the **Splitter** activity, the **Header Mapper** activity, and the **XML to HTML Translator** activity. Adding other fields to this document lets you define a personalized email message. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(575).png) ## Setup 1. Import the NM_PO.CONFIRM.zip configuration package, or use the Business Integration Solutions template if available. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(576).png) 2. Add a new email account in **Email Accounts**, then select **SMTP Account** to send notifications via the Papercut SMTP server. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(577).png) 3. On the notification page, edit the **EMAILWRITER** and add the **Account ID** created in the previous step. Run the configuration once. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(578).png) ## Process 1. Create a purchase order with some details and release it. 2. Open notification NM_PO.CONFIRM and observe that the purchase header is captured by the [Record Change Event activity](/business-central/docs/bc-record-change-event). 3. Process the notification. ## Result ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(579).png) The mail sends to all recipients. Using Papercut, the mail is captured in the demo environment, showing a preview of the HTML mail body and a PDF attachment of the order confirmation. > [!NOTE] > **Note** > > For a brief guide, see [Papercut SMTP setup](/business-central/docs/simulate-mail-using-papercut). ## Related - [Simulate mail using Papercut](/bc-simulate-mail-using-papercut.md) - [Record Change event](/bc-record-change-event.md)