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. Some of it is Dynamics AX 2012 documentation, an earlier version.
Tests
A ready-to-run test, “Old orders are purged”, 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 clean-up job that deletes invoiced and canceled sales orders that were created on or before a chosen date or age.
What you do here
Use this page to remove outdated order information, either for one customer account or for all customers, by invoice age in days or by a last-invoiced-through date.
Example
For example, BEAT purges call center orders invoiced more than 1,095 days ago (3 years), once a month, which removes about 4,000 orders each time.
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 outdated invoiced and canceled call center orders no longer need to be kept, for one customer account or for all customers.
How often
On demand, when outdated invoiced and canceled orders should be removed.
Batch settings
Run it in the background when it covers all customers, so the purge doesn't block your session.
What the output shows
Invoiced and canceled sales orders created on or before the chosen age or date are deleted, for one customer or all. If too many orders disappeared, the age or date was set too recent, because all older orders are included.
Delete invoiced and cancelled sales orders created on or before a chosen date or age.
Steps from Microsoft
Go to Retail and Commerce > Retail and Commerce IT > Clean up > Sales order purge.
Optionally select a Customer account to purge only that customer's sales orders; leave it blank to purge for all customers.
Enter Invoice aged days to delete invoiced and canceled orders older than that many days, or a Last invoiced through date to delete those created on or before that date.
Run the purge, then check in All sales orders that invoiced and canceled orders up to that age or date are gone and open orders are still there.
Purge only invoiced and cancelled orders past your retention period, and keep the purge selection the same every run.The purge can't be undone, so the selection is the control.
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 itSales manager TradeSalesManagerSales clerk TradeSalesClerkSales representative TradeSalesRepresentativeGive people one of these roles. On this system, 3 roles can run this page.Checked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=MCRSalesPurgeBatch
Data migration
Load order: Sales order purge has no data entity in Data management, so it can't be loaded from a file or a configuration template. It works on data that is already in the system, so there is nothing to load.Checked in Dynamics 365