Written from Microsoft's official Dynamics 365 documentation.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Run in a copy and check the result”, 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 production orders that have ended.
What you do here
Use this task to remove ended production orders from the system once the business has confirmed that the data is no longer required.
Example
For example, BEAT keeps ended production orders for three years. In January 2027 the production controller deletes the orders that ended in 2023, about 4,800.00 orders, after a test run in a copy of production.
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
After production orders have ended and the business has confirmed their data is no longer required.
How often
Periodically, in line with your retention policy for ended orders.
Batch settings
Run it as a batch job outside business hours when many ended orders are deleted.
What the output shows
Ended production orders are removed. Orders that remain are usually not Ended yet.
Run it once a year for orders ended before your retention period, in batch outside business hours, after a test in a copy of production.It deletes only ended orders, which can no longer take costs, so open work is never touched; Learn asks for a business check and a test first.
On this system 1 role can run this page, among them Information technology manager. The same cleanup is also on Cost management > Manufacturing accounting > Clean up. Give the privilege only to the people who run data housekeeping.
Per company: the job works on the production orders of the legal entity you run it in. Production orders are company data (the Production orders entity is not shared in Data management). Checked in Dynamics 365
Can it be undone
Irreversible: Deleted orders can't be restored.
If you change it later
Deletes ended production orders, so their details are no longer available for inquiries on those orders. Microsoft Learn
Technical architect
6Technical
Menu item
action:ProdTableCleanUp
Who can open it
1 security role. Select a role to see its duties and privileges.
DutyMaintain system settingsSysServerSettingsMaintain
PrivilegeDelete production ordersProdTableCleanUpProcess
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 it
To use itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Production orders cleanup has no data entity in Data management, because it is a periodic job that changes records that already exist. Ended orders aren't migrated; clean them up in the old system before extraction if they aren't needed.Checked in Dynamics 365