BeyondERP.Newsletter
Menu

Setup step on the Sales order purge page · Retail and Commerce

Purge old call center orders

Delete invoiced and cancelled sales orders created on or before a chosen date or age.

See how to set it up Back to Retail and Commerce

Used by
Sales clerk, Sales manager, Sales representative
Business process
Manage sales orders
Menu item
MCRSalesPurgeBatch
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. 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 isA clean-up job that deletes invoiced and canceled sales orders that were created on or before a chosen date or age.
What you do hereUse 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.
ExampleFor 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.
Sales order purge 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 sales orders
Menu pathRetail and Commerce › Retail and Commerce IT › Clean up › Sales order purge
Set up firstAll sales orders Microsoft Learn
Used next bySales update history cleanup Microsoft Learn
Related pagesDelete sales orders Microsoft Learn Customer service Microsoft Learn
In this process Delete closed return orders
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 outdated invoiced and canceled call center orders no longer need to be kept, for one customer account or for all customers.
How oftenOn demand, when outdated invoiced and canceled orders should be removed.
Batch settingsRun it in the background when it covers all customers, so the purge doesn't block your session.
What the output showsInvoiced 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.

Source: Microsoft Learn

Setup steps on this page

Purge old call center orders

Delete invoiced and cancelled sales orders created on or before a chosen date or age.

Steps from Microsoft

  1. Go to Retail and Commerce > Retail and Commerce IT > Clean up > Sales order purge.
  2. Optionally select a Customer account to purge only that customer's sales orders; leave it blank to purge for all customers.
  3. 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.
  4. 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.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Customer accountLimits the purge to one customer's sales orders.Microsoft Learn
Invoice aged daysDeletes invoiced and canceled orders older than this many days.Microsoft Learn
Last invoiced throughDeletes invoiced and canceled orders created on or before this date.Microsoft Learn

Common errors and fixes

MessageWhat to do
Customer service can't find an old orderIt was purged. Agree the Invoice aged days with customer service and finance before scheduling the purge. Microsoft Learn

Test checklist

  1. Invoiced and canceled orders older than the chosen age or date are gone.
  2. Open orders and newer orders are still there.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Purge old call center ordersPurge 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.How old must an order be before it is purged?Purging with a date that is too recent and losing orders customer service still looks up.Test: Old orders are purged

Feature management and licence

Licence or add-inIn this system 3 roles can open this page, among them Sales manager, Sales clerk and Sales representative.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: it purges the sales orders of the legal entity it runs in. Microsoft data model
Can it be undoneIrreversible: Purged orders can't be restored.
If you change it laterPurged invoiced and canceled orders are deleted, including all older ones before the chosen date. Microsoft Learn
Technical architect

6Technical

Menu itemMCRSalesPurgeBatch Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

3 security roles. Select a role to see its duties and privileges.

  • RoleSales clerkTradeSalesClerk
    • DutyMaintain sales orderMCRSalesMaintain
      • PrivilegePurge sales ordersMCRSalesPurgeBatchProcess
  • RoleSales managerTradeSalesManager
    • DutyPurge sales ordersMCRSalesPurgeBatchProcess
      • PrivilegePurge sales ordersMCRSalesPurgeBatchProcess
  • RoleSales representativeTradeSalesRepresentative
    • DutyMaintain sales orderMCRSalesMaintain
      • PrivilegePurge sales ordersMCRSalesPurgeBatchProcess
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 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 URLhttps://<your-environment>/?mi=MCRSalesPurgeBatch
Data migrationLoad 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
Everyone

8Sources