CrmServiceClient.CancelSalesOrder Method
Definition
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.
Cancel Sales order
public Guid CancelSalesOrder (Guid salesOrderId, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList, int orderStatusCode = 4, Guid batchId = default);
member this.CancelSalesOrder : Guid * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * int * Guid -> Guid
Public Function CancelSalesOrder (salesOrderId As Guid, fieldList As Dictionary(Of String, CrmDataTypeWrapper), Optional orderStatusCode As Integer = 4, Optional batchId As Guid = Nothing) As Guid
Parameters
- salesOrderId
- Guid
Sales order id to close
- fieldList
- Dictionary<String,CrmDataTypeWrapper>
List of fields to add
- orderStatusCode
- Int32
Status code of the order
- batchId
- Guid
Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately