Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The pricing engine in Dynamics 365 Sales supports a standard set of pricing and discounting methods. Depending on your specific requirements for applying taxation, discounts, and other pricing rules for your products, these methods might be limiting. If you want to define custom pricing for your products in opportunities, quotes, orders, and invoices, use the CalculatePrice message.
To use the custom pricing for your opportunities, quotes, orders, and invoices:
Set the value of the
Organization.OOBPriceCalculationEnabledcolumn to0(false). You can also use the Sales tab in the system settings area in Dynamics 365 or Microsoft Dynamics 365 for Outlook to disable system pricing. More information: Configure product catalog informationCreate a plug-in that contains your custom pricing code for calculating the price for your opportunity, quote, order, or invoice.
Register the plug-in on the
CalculatePricemessage.When you set the
Organization.OOBPriceCalculationEnabledcolumn to0, every time you create or change an opportunity, quote, order, or invoice, the plug-in registered on theCalculatePricemessage executes to calculate prices as specified in your custom code in the plug-in. The CalculatePriceRequest message doesn't have any usage scenario of its own. It's exposed so that you can plug in your own custom pricing calculation logic if you don't want to use the out-of-box pricing provided by Dynamics 365 Sales.For a sample plug-in that calculates custom pricing for opportunities, quotes, orders, and invoices, see Sample: Calculate Price plug-in.
If you want to revert to using the out-of-box pricing for your opportunities, quotes, orders, and invoices, set the value of the
Organization.OOBPriceCalculationEnabledcolumn to1(true). You can also use the Sales tab in the system settings area in Dynamics 365 or Dynamics 365 for Outlook to enable system pricing. More information: Configure product catalog information
Related information
Product pricing methods
Sample: Calculate Price plug-in
Product catalog tables