Keep work creation history for an agreed number of days
Warehouse managementPeriodic tasksClean up
action:WHSWorkCreateHistoryPurge
Used by
Warehouse planner
Business process
Manage warehouse operations
Menu item
action:WHSWorkCreateHistoryPurge
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 work creation history older than 30 days”, 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 is
A periodic task that deletes work creation history records.
What you do here
Use this task to delete work creation history older than the number of days you choose to keep.
Example
For example, BEAT creates about 2,000 work headers a day and keeps 30 days of work creation history to investigate wave problems. A monthly run with The number of days to keep = 30 deletes everything older than that.
The page in Dynamics 365. page title tab to open what to set or check
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 it
When the work creation history table grows large and older records are no longer needed for troubleshooting.
How often
On demand or on a recurring schedule, for example monthly.
Batch settings
Run it as a batch job outside working hours.
What the output shows
Deleted work creation history records older than the days you keep. Too few days removes history you might still need.
Agree a retention (for example 30 days) and run the job monthly in batch outside working hours.Microsoft says cleanup routines should run only after the business has confirmed the data is no longer required; deleted history can't be restored.
Warehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 1 role can open this page, among them Warehouse planner.
Per company: the job deletes history of the legal entity it runs in. Microsoft data model
Can it be undone
Irreversible: Deleted work creation history can't be restored.
If you change it later
Deletes work creation history records older than the days you keep from WHSWorkCreateHistory, so the Work creation history log no longer shows how that older work was created. Microsoft Learn
Technical architect
6Technical
Menu item
action:WHSWorkCreateHistoryPurgeChecked in Dynamics 365
Who can open it
1 security role. Select a role to see its duties and privileges.
Load order: Work creation history cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. The job only deletes old records; there is nothing to migrate. Set up the same recurring job in the new environment.Microsoft Learn
Checked in a working Dynamics 365 system, version 10.0.49: the menu item, form, table and security, the page.
To cite this step: WM-JOB-140, Keep work creation history for an agreed number of days. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/WM-JOB-140