OrganizationServiceContextExtensions.SendTemplate Method (OrganizationServiceContext, Guid, EntityReference, String, Guid(), String, Guid)

 

Applies To: Dynamics CRM 2015

Sends a bulk email message that is created from a template. (Developer Extensions)

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

Syntax

public static void SendTemplate(
    this OrganizationServiceContext context,
    Guid templateId,
    EntityReference sender,
    string recipientType,
    Guid[] recipientIds,
    string regardingType,
    Guid regardingId
)
public:
[ExtensionAttribute]
static void SendTemplate(
    OrganizationServiceContext^ context,
    Guid templateId,
    EntityReference^ sender,
    String^ recipientType,
    array<Guid>^ recipientIds,
    String^ regardingType,
    Guid regardingId
)
static member SendTemplate : 
        context:OrganizationServiceContext *
        templateId:Guid *
        sender:EntityReference *
        recipientType:string *
        recipientIds:Guid[] *
        regardingType:string *
        regardingId:Guid -> unit
<ExtensionAttribute>
Public Shared Sub SendTemplate (
    context As OrganizationServiceContext,
    templateId As Guid,
    sender As EntityReference,
    recipientType As String,
    recipientIds As Guid(),
    regardingType As String,
    regardingId As Guid
)

Parameters

Remarks

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