OrganizationServiceContextExtensions.ConvertSalesOrderToInvoice Method (OrganizationServiceContext, Guid, ColumnSet)
Applies To: Dynamics CRM 2013
Converts a sales order to an invoice. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Entity ConvertSalesOrderToInvoice(
this OrganizationServiceContext context,
Guid salesOrderId,
ColumnSet columnSet
)
public:
[ExtensionAttribute]
static Entity^ ConvertSalesOrderToInvoice(
OrganizationServiceContext^ context,
Guid salesOrderId,
ColumnSet^ columnSet
)
static member ConvertSalesOrderToInvoice :
context:OrganizationServiceContext *
salesOrderId:Guid *
columnSet:ColumnSet -> Entity
<ExtensionAttribute>
Public Shared Function ConvertSalesOrderToInvoice (
context As OrganizationServiceContext,
salesOrderId As Guid,
columnSet As ColumnSet
) As Entity
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
salesOrderId
Type: System.GuidThe ID of the sales order (order) to convert. Required.
columnSet
Type: Microsoft.Xrm.Sdk.Query.ColumnSetThe collection of attributes to retrieve from the resulting invoice. Required.
Return Value
Type: Microsoft.Xrm.Sdk.Entity
Returns an Entity, the resulting invoice.
Remarks
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 2013
Return to top