BeyondERP.Newsletter
Menu

Setup step on the Work line history log cleanup page · Warehouse management

Keep work line history for the investigation period

Use this job to delete temporary work line history older than the agreed retention.

Used by
System administrator
Business process
Manage warehouse operations
Menu item
action:WHSTmpWorkLineHistoryPurge
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, “Clean work line history”, 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 temporary work history records.
What you do hereUse this task to delete temporary work history older than the number of days you choose to keep.
ExampleFor example, BEAT supervisors look back at work line changes for up to 60 days when a picking error is reported, so the job runs monthly with The number of days to keep = 60.
Work line history log 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 line history log cleanup
Set up firstTemporary work history Microsoft Learn
Used next byTemporary work history Microsoft Learn
Related pagesWork creation history cleanup Microsoft Learn
In this process Keep wave label history for a year · Keep license plate receiving history for the dispute period
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 temporary work line history has grown and the business has confirmed that work line history older than the retention period isn't needed.
How oftenOn demand, or on a regular schedule once the business has agreed a retention period for work line history.
Batch settingsSchedule it as a recurring background job outside warehouse peak hours, with the same number of days each time.
What the output showsThe temporary work line history records older than the number of days you entered are removed. If recent history disappears, the number of days was set too low.

Source: Microsoft Learn

Setup steps on this page

Keep work line history for the investigation period

Use this job to delete temporary work line history older than the agreed retention.

Steps from Microsoft

  1. Go to Warehouse management > Periodic tasks > Clean up > Work line history log cleanup.
  2. Enter the number of days of temporary work line history to keep. Records in the WHSTmpWorkLineHistory table that are older than that are deleted.
  3. Pick a retention that still covers the period in which supervisors look back at work line changes when they investigate a picking problem.
  4. Run it, then look at the work line history for a recent work ID to see that recent entries are still there.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
The number of days to keepTemporary work line history older than this number of days is deleted from WHSTmpWorkLineHistory. The dialog opens with 0.Microsoft Learn 60

Common errors and fixes

MessageWhat to do
Temporary work history is empty after the runThe dialog default of 0 deletes all history. Enter the retention first. Checked in Dynamics 365

Test checklist

  1. No work line history older than the retention period remains.
  2. Work line history inside the retention period is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Keep work line history for the investigation periodAgree the look-back period for picking investigations (for example 60 days) and run the job monthly.Deleted history can't be restored; the default 0 removes everything.How many days of work line history are kept?Running it with 0 days from a recurring batch job set up without a value.Test: Clean work line history

Feature management and licence

Licence or add-inWarehouse management is part of the Dynamics 365 Supply Chain Management licence.

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 line history can't be restored.
If you change it laterPermanently deletes temporary work line history records older than the retention period. Microsoft Learn
Technical architect

6Technical

Menu itemaction:WHSTmpWorkLineHistoryPurge Checked in Dynamics 365
Who can open it

1 security role.

No privilege grants this menu item, so no duty or privilege can give access to it. Only the System administrator role, which is not limited by security, can open it.

  • RoleSystem administrator-SYSADMIN-
Worked out from Microsoft's standard security definitions (10.0.2790.108), which hold every privilege of the working Dynamics 365 system (10.0.49) but one custom privilege, checked on 2026-11-23
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:WHSTmpWorkLineHistoryPurge
Data migrationLoad order: Work line history log 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-240, Keep work line history for the investigation period. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/WM-JOB-240