BeyondERP.Newsletter
Menu

Setup step on the Generate pricing rule lookup data page · Pricing management

Generate pricing rule lookup data

Keep the lookup data of pricing rule conditions current.

See how to set it up Back to Pricing management

Used by
Purchasing manager, Retail merchandising manager, Retail operations manager and 3 more roles
Business process
Manage product pricing
Menu item
GUPPricingRuleConditionViewPersistence
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, “New rule is used after the run”, 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 generates the lookup data of pricing rule conditions, by Method (Increment by default) and in batches of a size you set.
What you do hereRun this job after pricing rules change, so the lookup data that the pricing engine reads includes the new and changed rules.
ExampleFor example, BEAT runs the job each night at 01:00 with Method = Increment and Batch size 5,000 so the 40 to 60 rules changed during the day are included.
Generate pricing rule lookup data 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 › Generate pricing rule lookup data
Set up firstGenerate pricing rule hash value Microsoft Learn
Used next byPrice simulator Microsoft Learn
Related pagesPricing rule cleanup Microsoft Learn
In this process Rebuild pricing rule hash values · Keep the valid base price current
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 itAfter pricing rules have changed, so the lookup data is current.
How oftenOn demand after pricing changes, or nightly as a recurring job.
Batch settingsRun it in the background outside business hours.
What the output showsLookup data for pricing rule conditions.

Source: Microsoft Learn

Setup steps on this page

Generate pricing rule lookup data

Keep the lookup data of pricing rule conditions current.

Steps from Microsoft

  1. Go to Pricing management > Periodic tasks > Generate pricing rule lookup data.
  2. In Method, keep Increment (the default) for regular runs.
  3. In Batch size, enter how many records to process in one step.
  4. Set up a recurring background run, then price a test order in the Price simulator and compare the result with the rules you expect.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
MethodHow the lookup data is built. Increment is the default.Checked in Dynamics 365Increment
Batch sizeHow many records are processed in one step. 0 by default.Checked in Dynamics 3655000

Common errors and fixes

MessageWhat to do
Orders don't pick up a new pricing rule.Check that the rule is Enabled and valid on the pricing date, then run the job again and test in the Price simulator. Microsoft Learn

Test checklist

  1. Enable a new discount for one item.
  2. Run the job with Method = Increment.
  3. Simulate an order line for the item.
  4. Check that the new discount is applied.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Generate pricing rule lookup dataA nightly recurring batch run with Method = Increment.Increment is the default method; a nightly run picks up the rules changed during the day.When should lookup data be generated?Leaving it unscheduled after go-live, so rules changed later aren't in the lookup data.Test: New rule is used after the run

Feature management and licence

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

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the lookup data of the company the job runs in. Checked in Dynamics 365
Can it be undoneReversible: Lookup data can be generated again.
If you change it laterRegenerates the lookup data of pricing rule conditions that the price engine reads. Microsoft Learn
Technical architect

6Technical

Menu itemGUPPricingRuleConditionViewPersistence Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

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

  • RolePurchasing managerTradePurchasingManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
  • RoleRetail merchandising managerRetailMerchandisingManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
  • RoleRetail operations managerRetailOperationsManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
  • RoleRetail serviceRetailService
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
  • RoleRetail store ITRetailStoreIT
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
  • RoleSales managerTradeSalesManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeGUPPricingRuleConditionLookupDataMaintain
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 RetailMerchandisingManagerRetail operations manager RetailOperationsManagerPurchasing manager TradePurchasingManagerGive people one of these roles. On this system, 6 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=GUPPricingRuleConditionViewPersistence
Data migrationLoad order: Generate pricing rule lookup data has no data entity in Data management: it is a batch dialog (SysOperationTemplateForm) that derives data from the pricing rules. After rules are imported, run this job instead of loading the lookup data.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PRM-PRB-120, Generate pricing rule lookup data. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PRM-PRB-120