OrganizationServiceContextExtensions.CreateInstance Method (OrganizationServiceContext, Entity, Int32)


Applies To: Dynamics CRM 2015

Creates future unexpanded instances of a recurring appointment master. (Developer Extensions)

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


public static bool CreateInstance(
    this OrganizationServiceContext context,
    Entity target,
    int count
static bool CreateInstance(
    OrganizationServiceContext^ context,
    Entity^ target,
    int count
static member CreateInstance : 
        context:OrganizationServiceContext *
        target:Entity *
        count:int -> bool
Public Shared Function CreateInstance (
    context As OrganizationServiceContext,
    target As Entity,
    count As Integer
) As Boolean


  • count
    Type: System.Int32

    The number of instances to be created. Required.

Return Value

Type: System.Boolean

Returns a Boolean, that indicates whether the series can be expanded.


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