BeyondERP.Newsletter
Menu

Job page · Procurement and sourcing

Purchase order history cleanup

A periodic task that cleans up purchase order history up to a date you enter.

Business process
Procure goods and services
Menu item
action:PurchOrderHistoryCleanUp
Show what matters for
PAGE GUIDEWhat the page does and how to use it7 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic task that cleans up purchase order history up to a date you enter.
What you do hereUse this task to clean up older purchase order history. You enter a Created until date and can run the task in the background.
Purchase order history cleanup page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processProcure goods and services
Menu pathProcurement and sourcing › Periodic tasks › Clean up › Purchase order history cleanup
End user · Functional consultant

3How to do it

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 to run itWhen old purchase order history is no longer needed for audits or vendor disputes and you want to reduce data volume.
How oftenOn demand, after the business has agreed how long purchase order history must be kept.
Batch settingsRun it in the background outside business hours, because it can process a large number of history records.
What the output showsPurchase order history created up to the Created until date is deleted. The purchase orders themselves stay.

Source: Microsoft Learn

Steps from Microsoft

  1. Go to Procurement and sourcing > Periodic tasks > Clean up > Purchase order history cleanup.
  2. In Created until, enter the date up to which older purchase order history is deleted. Leave enough months so recent order versions stay available for audits and vendor questions.
  3. Agree the date with purchasing and finance first, because order history shows the earlier versions of orders that were confirmed and changed.
  4. Run it in the background for large volumes, and test it in a test environment before production.
  5. After the run, open a purchase order from before the date and one from after it, and compare the history that remains.

Source: Microsoft Learn

Test checklist

  1. History before the date no longer appears on older orders.
  2. History after the date is unchanged.

Source: Microsoft Learn

Solution architect

4Design impact

Can it be undoneNo: Deleted purchase order history can't be restored. Choose the date with care and test it first. Microsoft Learn
If you change it laterDeletes purchase order history created up to the date you entered; the purchase orders remain. Microsoft Learn
Technical architect

5Technical

Menu itemaction:PurchOrderHistoryCleanUp Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Roles to set it up and use itTo use itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

6Developer

Open it by URLhttps://<your-environment>/?mi=action:PurchOrderHistoryCleanUp
Everyone

7Sources