OrganizationServiceContextExtensions.SendEmailFromTemplate Method (OrganizationServiceContext, Guid, String, Guid, Entity)


Applies To: Dynamics CRM 2015

Sends an email message using a template. (Developer Extensions)

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


public static Guid SendEmailFromTemplate(
    this OrganizationServiceContext context,
    Guid templateId,
    string regardingType,
    Guid regardingId,
    Entity target
static Guid SendEmailFromTemplate(
    OrganizationServiceContext^ context,
    Guid templateId,
    String^ regardingType,
    Guid regardingId,
    Entity^ target
static member SendEmailFromTemplate : 
        context:OrganizationServiceContext *
        templateId:Guid *
        regardingType:string *
        regardingId:Guid *
        target:Entity -> Guid
Public Shared Function SendEmailFromTemplate (
    context As OrganizationServiceContext,
    templateId As Guid,
    regardingType As String,
    regardingId As Guid,
    target As Entity
) As Guid


Return Value

Type: System.Guid

Returns Guid.


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