OrganizationServiceContextExtensions.ConvertSalesOrderToInvoice Method (OrganizationServiceContext, Guid, ColumnSet)


Applies To: Dynamics CRM 2015

Converts a sales order to an invoice. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static Entity ConvertSalesOrderToInvoice(
    this OrganizationServiceContext context,
    Guid salesOrderId,
    ColumnSet columnSet
static Entity^ ConvertSalesOrderToInvoice(
    OrganizationServiceContext^ context,
    Guid salesOrderId,
    ColumnSet^ columnSet
static member ConvertSalesOrderToInvoice : 
        context:OrganizationServiceContext *
        salesOrderId:Guid *
        columnSet:ColumnSet -> Entity
Public Shared Function ConvertSalesOrderToInvoice (
    context As OrganizationServiceContext,
    salesOrderId As Guid,
    columnSet As ColumnSet
) As Entity


  • salesOrderId
    Type: System.Guid

    The ID of the sales order (order) to convert. Required.

Return Value

Type: Microsoft.Xrm.Sdk.Entity

Returns an Entity, the resulting invoice.


This is a method wrapper for the ConvertSalesOrderToInvoiceRequest and ConvertSalesOrderToInvoiceResponse 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 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright