CalculatePriceRequest Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class CalculatePriceRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type CalculatePriceRequest = class
inherit OrganizationRequest
Public NotInheritable Class CalculatePriceRequest
Inherits OrganizationRequest
- Inheritance
- Attributes
Remarks
Message Availability
For this message to work, the caller must be connected to the server.
Usage
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.
Constructors
| CalculatePriceRequest() |
Initializes a new instance of the CalculatePriceRequest. |
Properties
| ExtensionData |
Gets or sets the structure that contains extra data. Optional. (Inherited from OrganizationRequest) |
| Item[String] |
Gets or sets the indexer for the |
| Parameters |
Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes. (Inherited from OrganizationRequest) |
| ParentId |
For internal use only. |
| RequestId |
Gets or sets the ID of an asynchronous operation (system job). Optional. (Inherited from OrganizationRequest) |
| RequestName |
Gets or sets the name of the request. Required, but is supplied by derived classes. (Inherited from OrganizationRequest) |
| Target |
For internal use only. |