BeyondERP.Newsletter
Menu

Setup step on the Order events cleanup page · Sales and marketing

Clean up recorded order events

Delete order events that are no longer needed and stop recording event types nobody uses.

Business process
Manage data
Menu item
action:MCROrderEventTableCleanup
Setup steps
1 on this page
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 job that cleans up recorded order events.
What you do hereUse this task to clean up recorded order events, choosing which records to include and whether to run the job in the background. Afterwards, open the Order event setup page and clear the check boxes for any order events that aren't required.
ExampleFor example, BEAT has recorded order events for a year; the sales manager filters the cleanup to events older than 180 days, runs it in the background on Sunday night, and then clears the event types it no longer needs on Order events setup.
Order events 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 data
Menu pathSales and marketing › Periodic tasks › Clean up › Order events cleanup
Set up firstOrder events Checked in Dynamics 365
Used next byOrder events (setup) Microsoft Learn
Related pagesOrder events Microsoft Learn Sales update history cleanup Microsoft Learn
In this process Schedule sales update history cleanup
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 recorded order events are no longer needed and the business has confirmed it doesn't need them for follow-up.
How oftenOn demand, when order event records build up.
Batch settingsRun it in the background outside business hours if many order events are recorded.
What the output showsRecorded order events that match your filter are removed. If events keep coming back, the event types are still selected on Order event setup.

Source: Microsoft Learn

Setup steps on this page

Clean up recorded order events

Delete order events that are no longer needed and stop recording event types nobody uses.

Steps from Microsoft

  1. Go to Sales and marketing > Periodic tasks > Clean up > Order events cleanup.
  2. Decide which recorded order events you no longer need before you run the cleanup.
  3. Expand Records to include and filter the order events to clean up.
  4. After the run, open Order event setup and clear the check boxes for any order events that aren't required, so they aren't recorded again.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Records to includeThe filter that selects which recorded order events are cleaned up.Checked in Dynamics 365
Run in the backgroundRuns the cleanup as a batch job.Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
Order events of the cleaned-up types keep being recorded.After the cleanup, open Order event setup and clear the check boxes for the order events that aren't required. Microsoft Learn

Test checklist

  1. The order events you filtered on are gone.
  2. Order event setup no longer has the unneeded event types selected.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up recorded order eventsFilter Records to include to old events only, run it in the background outside business hours, then clear unneeded event types on Order event setup.Microsoft names clearing the unneeded order events on Order event setup as the next step after the cleanup.Which order events should stay recorded?Running the cleanup but leaving every event type selected, so the events build up again.Test: Old order events removed

Feature management and licence

Licence or add-inOn the live system, Sales manager runs this task. No feature in Feature management is needed.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyThe recorded order events selected under Records to include. Microsoft Learn
Can it be undoneIrreversible: Deleted order events can't be restored.
If you change it laterDeletes the recorded order events that match the filter; clearing event types on Order event setup afterwards stops new ones. Microsoft advises running cleanup routines only after confirming the data is no longer required, and testing them first. On the live system only Sales manager can run it. Microsoft Learn
Technical architect

6Technical

Menu itemaction:MCROrderEventTableCleanup Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Roles to set it up and use itTo use itSales manager TradeSalesManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:MCROrderEventTableCleanup
Data migrationLoad order: Order events cleanup has no data entity in Data management. It deletes recorded events; there is nothing to migrate.Checked in Dynamics 365
Everyone

8Sources

To cite this step: SM-JOB-090, Clean up recorded order events. Beyond ERP Atlas Hub, 2026-11-11. https://www.beyonderp.cloud/atlas/step/SM-JOB-090