BeyondERP.Newsletter
Menu

Setup step on the Price report history cleanup page · Pricing management

Schedule price report history cleanup

Remove old price report history on an agreed schedule.

See how to set it up Back to Pricing management

Used by
Retail merchandising manager, Retail service, Sales manager
Business process
Manage product pricing
Menu item
GUPPriceReportDataCleanUp
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.
Tests
A ready-to-run test, “Cleanup removes generated reports”, 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 periodic job, titled Clean up price report history in its dialog, that deletes stored price report history. The dialog has no parameters apart from Run in the background.
What you do hereRun this job to remove old generated price reports so the Price report list keeps only what the pricing team still uses.
ExampleFor example, BEAT keeps price reports for audit for 90 days and schedules the cleanup monthly on the first Sunday at 02:00.
Price report history 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 active products › Manage product pricing
Menu pathPricing management › Periodic tasks › Price report history cleanup
Set up firstPrice report Microsoft Learn
Used next byPrice report Microsoft Learn
Related pagesPricing rule cleanup Microsoft Learn
In this process Process discount claims · Recalculate prices on open 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 generated price reports are no longer needed, after the agreed retention.
How oftenOn demand, or as a recurring background job once retention is agreed.
Batch settingsRun it in the background outside business hours.
What the output showsStored price report history is removed from the Price report list.

Source: Microsoft Learn

Setup steps on this page

Schedule price report history cleanup

Remove old price report history on an agreed schedule.

Steps from Microsoft

  1. Go to Pricing management > Periodic tasks > Price report history cleanup.
  2. Before you run it, agree with the pricing team which generated price reports are still needed, for example for audit of past prices.
  3. Schedule it outside business hours on a recurrence that matches that retention.
  4. Afterwards, open Price report and confirm that the reports you still need are listed.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Run in the backgroundThe only FastTab of the dialog: run the cleanup as a batch job, once or on a recurrence.Checked in Dynamics 365Batch processing = Yes

Common errors and fixes

MessageWhat to do
A price report needed for an audit is gone.Generate the report again for the past dates; price reports can show historical prices. Set a retention before you schedule the cleanup. Microsoft Learn

Test checklist

  1. Generate two price reports.
  2. Count the reports on Price report.
  3. Run the cleanup.
  4. Count the reports again and check which ones were removed.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Schedule price report history cleanupA recurring background job, outside business hours, after the pricing team agrees how long reports are kept.The job has no filters, so the schedule is the only control over how much history stays.Clean up price report history on a schedule or by hand?Running it before an audit of past prices: the reports are gone and must be generated again.Test: Cleanup removes generated reports

Feature management and licence

Feature to turn onUnified pricing management (Must be on)
Licence or add-inOn the live system, Retail service, Sales manager and Retail merchandising manager use this page.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the job cleans the price report history of the company it runs in. Checked in Dynamics 365
Can it be undoneIrreversible: Deleted history isn't restored; reports can be generated again.
If you change it laterDeletes stored price report history. Prices and pricing rules aren't touched; a deleted report can be generated again. Microsoft Learn
Technical architect

6Technical

Menu itemGUPPriceReportDataCleanUp 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.

  • RoleRetail merchandising managerRetailMerchandisingManager
    • DutyMaintain retail campaign discountsRetailDiscountOfferMaintain
      • PrivilegeMaintain price reportGUPPriceReportMaintain
  • RoleRetail serviceRetailService
    • DutyView price detailGUPPriceReportMaintain
      • PrivilegeMaintain price reportGUPPriceReportMaintain
    • DutyMaintain retail campaign discountsRetailDiscountOfferMaintain
      • PrivilegeMaintain price reportGUPPriceReportMaintain
  • RoleSales managerTradeSalesManager
    • DutyView price detailGUPPriceReportMaintain
      • PrivilegeMaintain price reportGUPPriceReportMaintain
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 itRetail service RetailServiceSales manager TradeSalesManagerRetail merchandising manager RetailMerchandisingManagerGive 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=GUPPriceReportDataCleanUp
Data migrationLoad order: Price report history cleanup has no data entity in Data management: it is a dialog that deletes stored report history and keeps no records of its own. Nothing is migrated for it; schedule it again in the new environment.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PRM-PRB-080, Schedule price report history cleanup. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PRM-PRB-080