BeyondERP.Newsletter
Menu

Job page · Pricing management

Generate pricing rule hash value

A periodic job that generates the hash values of pricing rules, either only for changes (Delta calculation) or in full, for one company or all companies.

Read the guide 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
GUPPricingRuleHashGenerateJob
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, “Imported rule matches after the job”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that generates the hash values of pricing rules, either only for changes (Delta calculation) or in full, for one company or all companies.
What you do hereRun this job so the pricing engine has current hash keys, the identifiers it uses to match pricing rules to orders by their attribute values.
ExampleFor example, after importing 3,500 trade agreement lines with GUPOpenTradeAgreementJournalLineV2Entity, BEAT runs the job with Delta calculation = No and For all companies = Yes.
Generate pricing rule hash value 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 hash value
Set up firstTrade agreement journals Microsoft Learn
Used next byGenerate pricing rule lookup data Microsoft Learn
Related pagesPrice attribute groups Microsoft Learn
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 or price attributes have changed, for example after a bulk import, or when attribute-based rules aren't matched as expected.
How oftenOn demand, after pricing data changes.
Batch settingsRun it in the background for all companies or without Delta calculation, because every rule is processed.
What the output showsHash keys for pricing rules, which the pricing engine uses to match rules to orders by their attributes.

Source: Microsoft Learn

Setup steps on this page

Rebuild pricing rule hash values

Keep the hash keys that match pricing rules to orders current.

Steps from Microsoft

  1. Go to Pricing management > Periodic tasks > Generate pricing rule hash value.
  2. Set Delta calculation to Yes to process only changes, or leave it at No to build the hash values again.
  3. Leave For all companies at Yes when the rules of every company must be processed, or set it to No.
  4. Run it, then price a test order in the Price simulator to confirm that the attribute-based rules are found.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Delta calculationYes processes only changes since the last run; No builds the hash values again. No by default.Checked in Dynamics 365No
For all companiesYes processes every company; No the current one. Yes by default.Checked in Dynamics 365Yes

Common errors and fixes

MessageWhat to do
An attribute-based rule isn't applied after a bulk import.Run the job again with Delta calculation = No so all hash values are rebuilt, then test in the Price simulator. Microsoft Learn

Test checklist

  1. Import or create a pricing rule for a header attribute value.
  2. Run the job with Delta calculation = Yes.
  3. Simulate an order with that attribute value.
  4. Check that the rule is applied.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Rebuild pricing rule hash valuesDelta calculation = Yes after small changes; No after a bulk import or migration.Hash keys identify attribute values so the engine can match rules; a full run makes sure every imported rule has one.Delta or full hash generation?Running only delta runs after a large import, so some rules aren't matched.Test: Imported rule matches after the job

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 companyEvery company by default (For all companies = Yes), or the current company. Checked in Dynamics 365
Can it be undoneReversible: Hash values are derived from the pricing rules; running the job again rebuilds them. Microsoft Learn
If you change it laterRebuilds the hash keys that the pricing engine uses to match pricing rules by attribute values. Microsoft Learn
Technical architect

6Technical

Menu itemGUPPricingRuleHashGenerateJob Checked in Dynamics 365
FormDialog 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
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
  • RoleRetail merchandising managerRetailMerchandisingManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
  • RoleRetail operations managerRetailOperationsManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
  • RoleRetail serviceRetailService
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
  • RoleRetail store ITRetailStoreIT
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
  • RoleSales managerTradeSalesManager
    • DutyEnable pricing setting processGUPMasterDataMaintain
      • PrivilegeMaintain price attribute groups masterGUPPricingAttributeGroupsMaintain
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=GUPPricingRuleHashGenerateJob
Data migrationLoad order: Generate pricing rule hash value has no data entity in Data management: it is a dialog that derives hash values from the pricing rules. After pricing rules are imported, run this job instead of loading hash values.Microsoft Learn
Everyone

8Sources