ConvertQuoteToSalesOrderRequest ConvertQuoteToSalesOrderRequest ConvertQuoteToSalesOrderRequest ConvertQuoteToSalesOrderRequest Class


Contains the data that is needed to convert a quote to a sales order.

For the Web API use the ConvertQuoteToSalesOrder Action.

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


 // Define columns to be retrieved after creating the order
var salesOrderColumns =
    new ColumnSet("salesorderid", "totalamount");
// Convert the quote to a sales order
ConvertQuoteToSalesOrderRequest convertQuoteRequest =
    new ConvertQuoteToSalesOrderRequest()
        QuoteId = _quoteId,
        ColumnSet = salesOrderColumns

ConvertQuoteToSalesOrderResponse convertQuoteResponse =
SalesOrder salesOrder = (SalesOrder)convertQuoteResponse.Entity;
_salesOrderId = salesOrder.Id;

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. For the complete sample, see the link later in this topic.



Message Availability

This message works regardless whether the caller is connected to the server or offline.


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

Privileges and Access Rights

To perform this action, the caller must have privileges on the Quote entity and access rights on the specified record in the QuoteId property. For a complete list of the required privileges, see ConvertQuoteToSalesOrder message privileges.


ConvertQuoteToSalesOrderRequest() ConvertQuoteToSalesOrderRequest() ConvertQuoteToSalesOrderRequest() ConvertQuoteToSalesOrderRequest()

Initializes a new instance of the ConvertQuoteToSalesOrderRequest class.


ColumnSet ColumnSet ColumnSet ColumnSet

Gets or sets the collection of attributes to retrieve in the resulting sales order (order). Required.

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

QuoteCloseDate QuoteCloseDate QuoteCloseDate QuoteCloseDate

Gets or sets the date when the quote is closed.

QuoteCloseDescription QuoteCloseDescription QuoteCloseDescription QuoteCloseDescription

Gets or sets the description for closing the quote.

QuoteCloseStatus QuoteCloseStatus QuoteCloseStatus QuoteCloseStatus

Gets or sets the status of the closed quote.

QuoteCloseSubject QuoteCloseSubject QuoteCloseSubject QuoteCloseSubject

Gets or sets the subject associated with the closed quote.

QuoteId QuoteId QuoteId QuoteId

Gets or sets the ID of the quote to convert. Required.

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)

Applies to

See also