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

 

Applies To: Dynamics CRM 2013

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

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

Syntax

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

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.EntityCollection

Returns EntityCollection.

Remarks

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 2013

Return to top