BeyondERP.Newsletter
Menu

Setup step on the Work creation history cleanup page · Warehouse management

Keep work creation history for an agreed number of days

Use this job to delete work creation history older than the retention the business agreed.

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 isA periodic task that deletes work creation history records.
What you do hereUse this task to delete work creation history older than the number of days you choose to keep.
ExampleFor 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.
Work creation 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 processManage warehouse operations
Menu pathWarehouse management › Periodic tasks › Clean up › Work creation history cleanup
Set up firstWork creation history log Microsoft Learn
Used next byWork creation history log Microsoft Learn
Related pagesBatch jobs Microsoft Learn
In this process Monitor and correct the inbound queue · Monitor the outbound queue
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 the work creation history table grows large and older records are no longer needed for troubleshooting.
How oftenOn demand or on a recurring schedule, for example monthly.
Batch settingsRun it as a batch job outside working hours.
What the output showsDeleted work creation history records older than the days you keep. Too few days removes history you might still need.

Source: Microsoft Learn

Setup steps on this page

Keep work creation history for an agreed number of days

Use this job to delete work creation history older than the retention the business agreed.

Steps from Microsoft

  1. Go to Warehouse management > Periodic tasks > Clean up > Work creation history cleanup.
  2. In the dialog, enter the number of days of work creation history to keep; older records in WHSWorkCreateHistory are deleted.
  3. Pick a value long enough to cover the period you still investigate work creation problems for.
  4. After the run, open the work creation history and make sure only recent records remain.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
The number of days to keepWork creation history records older than this number of days are deleted from WHSWorkCreateHistory. The dialog opens with 0.Microsoft Learn 30

Common errors and fixes

MessageWhat to do
The Work creation history log is empty after the runWith The number of days to keep left at 0, all history is removed. Enter the agreed retention before you run the job. Checked in Dynamics 365

Test checklist

  1. Only history newer than the number of days remains.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Keep work creation history for an agreed number of daysAgree 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.How many days of work creation history are kept?Running it with the default 0 days, which deletes all history including today's.Test: Delete work creation history older than 30 days

Feature management and licence

Licence or add-inWarehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 1 role can open this page, among them Warehouse planner.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the job deletes history of the legal entity it runs in. Microsoft data model
Can it be undoneIrreversible: Deleted work creation history can't be restored.
If you change it laterDeletes 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 itemaction:WHSWorkCreateHistoryPurge Checked in Dynamics 365
Who can open it

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

  • RoleWarehouse plannerWHSWarehousePlanner
    • DutyMaintain warehouse planningWHSWarehousePlanningMaintain
      • PrivilegeMaintain history purge processWHSWorkCreateHistoryPurgeProcess
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 itWarehouse planner WHSWarehousePlannerGive 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:WHSWorkCreateHistoryPurge
Data migrationLoad 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
Everyone

8Sources

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