FulfillSalesOrderRequest FulfillSalesOrderRequest FulfillSalesOrderRequest FulfillSalesOrderRequest Class


Contains the data that is needed to fulfill the sales order (order).

For the Web API use the FulfillSalesOrder Action.

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


      // Close the sales order with a status of Complete
      int newStatus = (int)salesorder_statuscode.Complete;
      var request = new FulfillSalesOrderRequest
          OrderClose = new OrderClose
              SalesOrderId = new EntityReference 
              { LogicalName = SalesOrder.EntityLogicalName, Id = _salesOrderId.Value }

    Status = new OptionSetValue(newStatus)
         Console.WriteLine(String.Concat("Executing FullfillSalesOrderRequest on sales order: ",
         _salesOrderId.Value, ",\n\t new status: ", 
          GetLabelForStatus(SalesOrder.EntityLogicalName, "statuscode", newStatus))); 

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

Privileges and Access Rights

To perform this action, the caller must have privileges on the OrderClose entity and access rights on the records specified in the OrderClose property. For a complete list of required privileges, see FulfillSalesOrder message privileges.


FulfillSalesOrderRequest() FulfillSalesOrderRequest() FulfillSalesOrderRequest() FulfillSalesOrderRequest()

Initializes a new instance of the FulfillSalesOrderRequest class.


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

Gets or sets the order close activity associated with the sales order (order) to be fulfilled. Required.

Parameters Parameters Parameters Parameters

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

(Inherited from OrganizationRequest)
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)
Status Status Status Status

Gets or sets a status of the sales order (order). Required.

Applies to

See also