--- title: "Purchase order export" slug: "bc-purchase-order-export" description: "Learn how to export purchase order data from Microsoft Dynamics 365 Business Central using Record Change Events and XML file generation." tags: ["BC", "BIS", "Business Central", "Business Integration Solutions", "Walkthrough"] updated: 2026-06-25T09:59:07Z published: 2026-06-25T09:59:07Z canonical: "docs.staedean.com/bc-purchase-order-export" --- > ## 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 export This walkthrough provides an overview of how to export data from Microsoft Dynamics 365 Business Central, involving several tables. In the following example, you export purchase order data from Microsoft Dynamics 365 Business Central. ## Prerequisites | Template | Description | Sample file | | --- | --- | --- | | TI_CS_PURCHORDER.OUT | STAEDEAN Template - Export Purchase Order (XML Format) | N/A | ## Story This connection uses a **Record Change Event** to trigger the pipeline. Whenever you modify the Purchase Header, such as a status change, the **Record Change Event** picks it up. Once the pipeline triggers, the **XML Generator** activity creates an XML file based on an internal document. The **Splitter** activity creates one message for each purchase order. The **File Writer** writes the XML document to the specified location. ![PO Out Pipeline](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/DM_PurchOrdOut_Pipeline.png) ## Setup 1. Import the Connectivity Studio Connection-TI_CS_PURCHORDER.OUT.zip configuration package. ![PO Out](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/DM_PurchOrdOut_Import.png) 2. Open the TI_CS_PURCHORDER.OUT connection. On the connection page, edit the **File Writer** settings and enter the folder name. ![PO Out Settings](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/DM_PurchOrdOut_Settings.png) 3. Restart the RTC client. ## Process 1. Open a purchase order or create a new one, for example, for 50000 Service Electronics Ltd. 2. Change the status to **Released**. 3. Open the connection. To check whether the event detected the record modification, select **Edit**, then **Navigate**, then **Design**. 4. Process the connection. 5. Check the output folder location. 6. An XML file with the purchase order details is created. In this scenario, the item details are generated only when the status is set to **Released**. You can change this in the table filter for Purchase Header in the TI_CS_PURCHORD internal document. ## Result ![PO Out Result](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/DM_PurchOrdOut_Result.png) This exports purchase orders based on the internal document structure and the status change filter. ## Related - [Sales order import](/bc-sales-order-import.md)