BeyondERP.Newsletter
Menu

Setup step on the Pricing rule cleanup page · Pricing management

Clean up unused pricing rule data

Clear pricing rule data that is no longer used.

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
GUPClearUnusedPricingDataJob
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, “Prices unchanged after cleanup”, 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 that clears unused pricing rule data for the current company or, with For all companies, for every company.
What you do hereRun this job to remove pricing rule data that is no longer used, at a time when nobody changes pricing data.
ExampleFor example, after BEAT disables 1,200 expired 2025 discounts, the pricing team schedules the cleanup for Sunday 02:00 with For all companies = No and freezes pricing changes until it ends.
Pricing rule 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

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 unused pricing rule data has built up, at a time when no pricing maintenance takes place.
How oftenOn demand.
Batch settingsRun it in the background outside business hours, when no pricing data is being changed.
What the output showsUnused pricing rule data is cleared.

Source: Microsoft Learn

Setup steps on this page

Clean up unused pricing rule data

Clear pricing rule data that is no longer used.

Steps from Microsoft

  1. Go to Pricing management > Periodic tasks > Pricing rule cleanup.
  2. Read the warning in Parameters: don't create, edit or remove pricing data while the cleanup runs.
  3. Set For all companies to Yes to clean up every company, or leave it at No to clean up the current company only.
  4. Tell the pricing team when it runs, and afterwards price a test order in the Price simulator to confirm prices still come out right.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
WarningThe dialog shows: "Warning: Do not create, edit or remove the pricing data setting, including pricing rule setting while this clearing batch job operation is running."Checked in Dynamics 365
For all companiesNo cleans up the current company only; Yes cleans up every company. No by default.Checked in Dynamics 365No

Common errors and fixes

MessageWhat to do
Prices look wrong after the cleanup.Check whether pricing rules were changed while the job ran, which the dialog warns against; change the rule again and test in the Price simulator. Checked in Dynamics 365

Test checklist

  1. Note the price of a test order line in the Price simulator.
  2. Run the cleanup with For all companies = No.
  3. Price the same line again.
  4. Check that the price is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up unused pricing rule dataFor all companies = No for the first run, in the background outside business hours, with a pricing change freeze.The dialog warns not to create, edit or remove pricing data while the job runs.Clean up one company or all companies?Setting For all companies = Yes when only one company was prepared, or changing rules while the job runs.Test: Prices unchanged after cleanup

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 companyThe current company by default; every company when For all companies is Yes. Checked in Dynamics 365
Can it be undoneIrreversible: Cleared data isn't restored.
If you change it laterClears pricing rule data that is no longer used, in one company or all of them. Pricing data must not be changed during the run. Checked in Dynamics 365
Technical architect

6Technical

Menu itemGUPClearUnusedPricingDataJob Checked in Dynamics 365
FormSysOperationTemplateForm 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=GUPClearUnusedPricingDataJob
Data migrationLoad order: Pricing rule cleanup has no data entity in Data management: it is a batch dialog (SysOperationTemplateForm) that clears data and keeps no records of its own. Nothing is migrated for it.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PRM-PRB-100, Clean up unused pricing rule data. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PRM-PRB-100