Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.


Symptoms

Basically, the developer will have to add listeners to one (or more) events available on the Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine.Events.PriceEvents class and add custom logic inside the handlers.

 

In order to get an instance of the PriceEvents class, the following code must be executed:

 

var

priceEvents = PricingEngineExtensionRepository.GetPriceEvents();

 

8 event types were introduced:
- Pre & Post Base Price Application
- Pre & Post Trade Agreement Application
- Pre & Post Price Adjusment Application
- Pre & Post Price Rounding

 

All these events work on a line-by-line basis.

↑ Back to the top


Resolution

After the CRT code was sealed, changing the behavior of the PricingEngine while applying price was not possible.

↑ Back to the top


More information

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained here in is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Article Info
Article ID : 4045804
Revision : 1
Created on : 9/26/2017
Published on : 9/26/2017
Exists online : False
Views : 193