BeyondERP.Newsletter
Menu

Job page · Retail and Commerce

Sales order purge

A clean-up job that deletes invoiced and canceled sales orders that were created on or before a chosen date or age.

Business process
Manage sales orders
Menu item
MCRSalesPurgeBatch
Show what matters for
PAGE GUIDEWhat the page does and how to use it7 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, entering 30 in Invoice aged days on April 1, 2014 deletes invoiced or canceled orders created on or before March 2, 2014.
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
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

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

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

Solution architect

4Design impact

Can it be undoneNo: Purged orders can't be restored. Run it only for orders the business no longer needs. Microsoft Learn
If you change it laterPurged invoiced and canceled orders are deleted, including all older ones before the chosen date. Microsoft Learn
Technical architect

5Technical

Menu itemMCRSalesPurgeBatch Checked in Dynamics 365
FormDialog Checked in Dynamics 365
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

6Developer

Open it by URLhttps://<your-environment>/?mi=MCRSalesPurgeBatch
Everyone

7Sources