BeyondERP.Newsletter
Menu

Setup step on the Process commerce discounts page · Retail and Commerce

Schedule Process commerce discounts

Keep the flattened discount tables current so channels find and calculate discounts quickly.

See how to set it up Back to Retail and Commerce

Used by
Retail merchandising manager, Retail operations manager, Retail service and 1 more role
Business process
Create discounts in Dynamics 365 Commerce
Menu item
RetailPeriodicDiscountPublish
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, “Discount found after processing”, 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 batch job page that denormalizes enabled discount data into flattened tables before it is sent to channel databases, so the pricing engine can find and calculate discounts faster.
What you do hereUse this page to schedule the recurring batch job that publishes flattened discount data as part of the improved discount calculation feature.
ExampleFor example, schedule the job to run every night so newly enabled discounts are flattened before the next prices and discounts distribution job.
Process commerce discounts 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 you turn on the improved discount calculation, and afterwards whenever discounts are enabled. From 10.0.32 the feature is on by default and the job is scheduled when a discount is enabled.
How oftenOn a recurring schedule; with the feature on, a run is also scheduled when a discount is enabled or a product master gets a new variant.
Batch settingsRecurring batch job; before 10.0.38 several jobs could be scheduled by mistake and block other jobs.
What the output showsFlattened discount data in headquarters that the distribution jobs send to channel databases. A discount missing in channels usually means 1020 hasn't run since the job.

Source: Microsoft Learn

Setup steps on this page

Schedule Process commerce discounts

Keep the flattened discount tables current so channels find and calculate discounts quickly.

Steps from Microsoft

  1. Go to Retail and Commerce > Pricing and discounts > Process commerce discounts.
  2. In the dialog box, schedule the batch job to run on a recurring basis.
  3. Go to System administration > Workspaces > Feature management and turn on Improve discount computation performance by using flattened discount tables. Test it first, especially if you have pricing engine customizations.
  4. Run the 1020 (Prices and discounts) and 1070 (Channel configuration) distribution schedule jobs.
  5. Ring up an item with an enabled discount at the POS and check that the discount is found and calculated.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
Many Process commerce discounts batch jobs block other jobsThis issue is fixed in Commerce 10.0.38. Until you upgrade, you can avoid it by turning off the Improve discount computation performance by using flattened discount tables feature. Microsoft Learn
Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Schedule Process commerce discountsA recurring batch job, then the 1020 (Prices and discounts) and 1070 (Channel configuration) distribution jobs.With the feature on, headquarters denormalizes discount data before sending it to channels; publication is triggered when a discount is enabled.Should the improved discount calculation be used?Turning the feature on in production without testing it first, especially with pricing engine customizations.Test: Discount found after processing

Feature management and licence

Feature to turn onImprove discount computation performance by using flattened discount tables (On by default from Commerce 10.0.32)
Licence or add-inIn this system 4 roles can open this page, among them Retail service, Retail operations manager, Retail store manager and Retail merchandising manager.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyEnabled discounts: headquarters flattens their data before it is sent to the channel databases. Microsoft Learn
Can it be undoneReversible: Turn the feature off in Feature management; discounts are then sent without the flattened tables.
If you change it laterTurning the feature on changes how discounts are published to channels, so it must be tested first, especially with pricing engine customizations; before 10.0.38 duplicate jobs could block other batch work. Microsoft Learn
Technical architect

6Technical

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

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

  • RoleRetail merchandising managerRetailMerchandisingManager
    • DutyMaintain retail campaign discountsRetailDiscountOfferMaintain
      • PrivilegeMaintain retail discountsRetailDiscountsMaintain
  • RoleRetail operations managerRetailOperationsManager
    • DutyMaintain retail campaign discountsRetailDiscountOfferView
      • PrivilegeView retail discountsRetailDiscountsView
  • RoleRetail serviceRetailService
    • DutyMaintain retail campaign discountsRetailDiscountOfferMaintain
      • PrivilegeMaintain retail discountsRetailDiscountsMaintain
    • DutyMaintain retail campaign discountsRetailDiscountOfferView
      • PrivilegeView retail discountsRetailDiscountsView
  • RoleRetail store managerRetailStoreManager
    • DutyMaintain retail campaign discountsRetailDiscountOfferView
      • PrivilegeView retail discountsRetailDiscountsView
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 RetailServiceRetail operations manager RetailOperationsManagerRetail store manager RetailStoreManagerRetail merchandising manager RetailMerchandisingManagerGive people one of these roles. On this system, 4 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=RetailPeriodicDiscountPublish
Data migrationLoad order: Process commerce discounts has no data entity in Data management, so it can't be loaded from a file or a configuration template. It is a batch job: schedule it in each environment.Checked in Dynamics 365
Everyone

8Sources

To cite this step: RC-PRC-110, Schedule Process commerce discounts. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/RC-PRC-110