OrganizationServiceContextExtensions.CancelSalesOrder Method (OrganizationServiceContext, Entity, OptionSetValue)
Applies To: Dynamics CRM 2013
Cancels a sales order. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static void CancelSalesOrder(
this OrganizationServiceContext context,
Entity orderClose,
OptionSetValue status
)
public:
[ExtensionAttribute]
static void CancelSalesOrder(
OrganizationServiceContext^ context,
Entity^ orderClose,
OptionSetValue^ status
)
static member CancelSalesOrder :
context:OrganizationServiceContext *
orderClose:Entity *
status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub CancelSalesOrder (
context As OrganizationServiceContext,
orderClose As Entity,
status As OptionSetValue
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
orderClose
Type: Microsoft.Xrm.Sdk.EntityThe close activity that is associated with the sales order (order) that you want to cancel. Required.
status
Type: Microsoft.Xrm.Sdk.OptionSetValueThe status of the sales order (order). Required.
Remarks
This is a method wrapper for the CancelSalesOrderRequest and CancelSalesOrderResponse classes. See the documentation in the Request class for more information about this message.
See Also
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top