Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UnlockSalesOrderPricingRequest Class

Definition

Namespace:
Microsoft.Crm.Sdk.Messages
Assembly:
Microsoft.Crm.Sdk.Proxy.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

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

Name Description
UnlockSalesOrderPricingRequest()

Initializes a new instance of the UnlockSalesOrderPricingRequest class.

Properties

Name Description
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