CalculatePriceRequest CalculatePriceRequest CalculatePriceRequest CalculatePriceRequest Class


Contains the data that is needed to calculate price in an opportunity, quote, order, and invoice. This is used internally for custom pricing calculation when the default system pricing is overridden.

For the Web API use the CalculatePrice Action.

public ref class CalculatePriceRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
public sealed class CalculatePriceRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type CalculatePriceRequest = class
    inherit OrganizationRequest
Public NotInheritable Class CalculatePriceRequest
Inherits OrganizationRequest


Message Availability

For this message to work, the caller must be connected to the server.


This message does not have any usage scenario of its own. It provides you the capability to plug in your own custom pricing calculation logic if you do not want to use the out-of-box pricing provided by Dynamics 365. To use this message, you must create a plug-in with the custom pricing logic, and register the plug-in on the CalculatePrice message. Additionally, you must set the value of the Organization.OOBPriceCalculationEnabled attribute to 0 (false) to override the system pricing engine. More information: Use custom pricing for products

Privileges and Access Rights

To perform this action, the caller must have privileges on the Opportunity, Quote, SalesOrder, and Invoice entities.


CalculatePriceRequest() CalculatePriceRequest() CalculatePriceRequest() CalculatePriceRequest()

Initializes a new instance of the CalculatePriceRequest.


ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
ParentId ParentId ParentId ParentId

For internal use only.

RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
Target Target Target Target

For internal use only.

Applies to