| What it is | A periodic task that cleans up purchase order history up to a date you enter. |
|---|---|
| What you do here | Use this task to clean up older purchase order history. You enter a Created until date and can run the task in the background. |

Job page · Procurement and sourcing
A periodic task that cleans up purchase order history up to a date you enter.
action:PurchOrderHistoryCleanUp| Business process | Procure goods and services |
|---|---|
| Menu path | Procurement and sourcing › Periodic tasks › Clean up › Purchase order history cleanup |
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
| When to run it | When old purchase order history is no longer needed for audits or vendor disputes and you want to reduce data volume. |
|---|---|
| How often | On demand, after the business has agreed how long purchase order history must be kept. |
| Batch settings | Run it in the background outside business hours, because it can process a large number of history records. |
| What the output shows | Purchase order history created up to the Created until date is deleted. The purchase orders themselves stay. |
Source: Microsoft Learn
Source: Microsoft Learn
Source: Microsoft Learn
| Can it be undone | No: Deleted purchase order history can't be restored. Choose the date with care and test it first. Microsoft Learn |
|---|---|
| If you change it later | Deletes purchase order history created up to the date you entered; the purchase orders remain. Microsoft Learn |
| Menu item | action:PurchOrderHistoryCleanUp Checked in Dynamics 365 |
|---|---|
| Form | SysOperationTemplateForm Checked in Dynamics 365 |
| Roles to set it up and use it | To use itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365 |
| Open it by URL | https://<your-environment>/?mi=action:PurchOrderHistoryCleanUp |
|---|