BeyondERP.Newsletter
Menu

Setup step on the Purchase update history cleanup page · Procurement and sourcing

Delete old purchase update history

Keep purchase update history to the retention period the business agreed.

Used by
Information technology manager
Business process
Procure goods and services
Menu item
action:PurchParmCleanUp
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Delete purchase update history up to a date”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA cleanup job that permanently deletes purchase update history: the records that are created when purchase order confirmations, picking lists, product receipts and invoices are posted.
What you do hereUse it to remove old update history that the business has confirmed it no longer needs. Microsoft says to run cleanup routines only after that analysis, and to test each one in a test environment before production.
ExampleFor example, BEAT keeps 12 months of purchase update history. In January 2027 the IT manager deletes executed history created until 2025-12-31 for the company, after purchasing and finance have signed off that retention period and the same run was checked in a copy of production.
Purchase update 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

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 update history from posting purchase confirmations, picking lists, product receipts and invoices has grown and the business has confirmed the old entries are no longer required.
How oftenOn demand after the retention period is agreed, or as a recurring background job that uses Retain records based on age.
Batch settingsRun it in the background outside business hours when a large amount of history is deleted at once.
What the output showsUpdate history that matches the Clean up status and is older than the date or age you set is deleted for good.

Source: Microsoft Learn

Setup steps on this page

Delete old purchase update history

Keep purchase update history to the retention period the business agreed.

Steps from Microsoft

  1. Go to Procurement and sourcing > Periodic tasks > Clean up > Purchase update history cleanup.
  2. Agree with purchasing and finance how long update history of confirmations, product receipts and invoices must be kept.
  3. In Clean up, keep Executed unless the business has agreed to delete history with other statuses too.
  4. Enter Created until as the last day of the period to delete, or set Retain records based on age to Yes and enter a Maximum age for a recurring job.
  5. Try the run in a test environment first, then run it in production and check that history newer than the date is still there.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Clean upWhich update history records to delete, by their status. Executed is the default.Checked in Dynamics 365Executed
Created untilHistory created up to this date is deleted when Retain records based on age is No.Checked in Dynamics 3652025-12-31
Retain records based on ageYes/No option, No by default. With No, the job uses the Created until date and Maximum age can't be entered.Checked in Dynamics 365No
Maximum ageThe maximum age of the history to keep. It can be entered only when Retain records based on age is Yes.Checked in Dynamics 365365

Common errors and fixes

MessageWhat to do
Update history of current orders is missing after the cleanup.The Created until date or Maximum age was too recent. Deleted history can't be brought back; agree the retention period with the business and test the run in a test environment before production. Microsoft Learn

Test checklist

  1. In a test environment, note two orders with update history: PO-001234 posted on 2025-06-30 and PO-002210 posted on 2026-10-01.
  2. Run the cleanup with Clean up Executed and Created until 2025-12-31.
  3. Check the update history of both orders.
  4. Check that PO-001234 shows 0 history entries and PO-002210 still shows its entries.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete old purchase update historyRun it with Clean up set to Executed and a Created until date, or a Maximum age, that keeps the agreed retention period, after a test run in a test environment.The job deletes update history for good, and Microsoft says to run cleanup routines only after the business confirms the data is no longer required.Which purchase update history does the cleanup delete?A recent date or a wide Clean up status removes history that people still use to look into current confirmations, product receipts and invoices.Test: Delete purchase update history up to a date

Feature management and licence

Licence or add-inOn the live system, only the Information technology manager role can run this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: it deletes the purchase update history of the legal entity you run it in. Checked in Dynamics 365
Can it be undoneIrreversible: Deleted update history can't be restored.
If you change it laterDeletes update history records of purchase confirmations, picking lists, product receipts and invoices. Run it only after the business confirms the data is no longer required. Microsoft Learn
Technical architect

6Technical

Menu itemaction:PurchParmCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClean up purchase update historyPurchParmCleanUpProcess
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
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

7Developer

Open it by URLhttps://<your-environment>/?mi=action:PurchParmCleanUp
Data migrationLoad order: Purchase update history cleanup has no data entity in Data management. It deletes history and holds no data of its own; update history isn't migrated. Run it in the new system only after go-live, when the retention period is agreed.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PS-JOB-020, Delete old purchase update history. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PS-JOB-020