Share via


OrganizationServiceContextExtensions.CloneContract Method (OrganizationServiceContext, Guid, Boolean)

 

Applies To: Dynamics CRM 2015

Copies an existing contract and its line items. (Developer Extensions)

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

Syntax

public static Entity CloneContract(
    this OrganizationServiceContext context,
    Guid contractId,
    bool includeCanceledLines
)
public:
[ExtensionAttribute]
static Entity^ CloneContract(
    OrganizationServiceContext^ context,
    Guid contractId,
    bool includeCanceledLines
)
static member CloneContract : 
        context:OrganizationServiceContext *
        contractId:Guid *
        includeCanceledLines:bool -> Entity
<ExtensionAttribute>
Public Shared Function CloneContract (
    context As OrganizationServiceContext,
    contractId As Guid,
    includeCanceledLines As Boolean
) As Entity

Parameters

  • contractId
    Type: System.Guid

    The ID of the contract to be copied. Required.

  • includeCanceledLines
    Type: System.Boolean

    A value that indicates whether the canceled line items of the originating contract are to be included in the copy (clone). Required.

Return Value

Type: Microsoft.Xrm.Sdk.Entity

Returns an Entity, the resulting contract.

Remarks

This is a method wrapper for the CloneContractRequest and CloneContractResponse 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