Compartir a través de


UnlockSalesOrderPricingRequest Class

Definition

Contains the data that is needed to unlock pricing for a sales order (order).

public ref class UnlockSalesOrderPricingRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class UnlockSalesOrderPricingRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type UnlockSalesOrderPricingRequest = class
    inherit OrganizationRequest
Public NotInheritable Class UnlockSalesOrderPricingRequest
Inherits OrganizationRequest
Inheritance
UnlockSalesOrderPricingRequest
Attributes

Examples

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface instance.

/// <summary>
/// Unlocks Sales Order pricing
/// </summary>
/// <param name="service">Authenticated client implementing the IOrganizationService interface</param>
/// <param name="salesOrderID">The ID of the sales order to unlock pricing for.</param>
static void UnlockSalesOrderPricingExample(IOrganizationService service, Guid salesOrderID)
{
    // Unlock the sales order pricing
    var request =
        new UnlockSalesOrderPricingRequest()
        {
            SalesOrderId = salesOrderID
        };
    service.Execute(request);
}      

Remarks

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of UnlockSalesOrderPricingResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges on the SalesOrder entity and access rights on the record specified in the SalesOrderId property.

Notes to Callers

This message unlocks the total price of products and services specified in the sales order (order). When the sale order pricing is unlocked, changes to underlying price lists (price level) can affect the prices for a sales order.

Constructors

UnlockSalesOrderPricingRequest()

Initializes a new instance of the UnlockSalesOrderPricingRequest class.

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 collection.

(Inherited from OrganizationRequest)
Parameters

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

(Inherited from OrganizationRequest)
RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

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

(Inherited from OrganizationRequest)
SalesOrderId

Gets or sets the ID of the sales order (order).

Applies to

See also