OrganizationServiceContextExtensions.InstantiateTemplate Method (OrganizationServiceContext, Guid, String, Guid)


Applies To: Dynamics CRM 2015

Creates an email message from a template. (Developer Extensions)

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


public static EntityCollection InstantiateTemplate(
    this OrganizationServiceContext context,
    Guid templateId,
    string objectType,
    Guid objectId
static EntityCollection^ InstantiateTemplate(
    OrganizationServiceContext^ context,
    Guid templateId,
    String^ objectType,
    Guid objectId
static member InstantiateTemplate : 
        context:OrganizationServiceContext *
        templateId:Guid *
        objectType:string *
        objectId:Guid -> EntityCollection
Public Shared Function InstantiateTemplate (
    context As OrganizationServiceContext,
    templateId As Guid,
    objectType As String,
    objectId As Guid
) As EntityCollection


Return Value

Type: Microsoft.Xrm.Sdk.EntityCollection

Returns EntityCollection.


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