SendTemplateRequest SendTemplateRequest SendTemplateRequest SendTemplateRequest Class

Definition

Contains the data that is needed to send a bulk email message that is created from a template.

For the Web API use the SendTemplate Action.

public ref class SendTemplateRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class SendTemplateRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type SendTemplateRequest = class
    inherit OrganizationRequest
Public NotInheritable Class SendTemplateRequest
Inherits OrganizationRequest
Inheritance
SendTemplateRequestSendTemplateRequestSendTemplateRequestSendTemplateRequest
Attributes

Remarks

Message Availability

This message works regardless whether the caller is connected to the server or offline.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of the SendTemplateResponse class.

Privileges and Access Rights

To perform this action, the caller must have privileges on the Template entity and access rights on the specified record in the TemplateId property. For a list of the required privileges, see SendTemplate message privileges.

Constructors

SendTemplateRequest() SendTemplateRequest() SendTemplateRequest() SendTemplateRequest()

Initializes a new instance of the SendTemplateRequest class.

Properties

DeliveryPriorityCode DeliveryPriorityCode DeliveryPriorityCode DeliveryPriorityCode

Gets or sets the delivery priority code for the email.

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RecipientIds RecipientIds RecipientIds RecipientIds

Gets or sets the array that contains the list of recipients for the email. Required.

RecipientType RecipientType RecipientType RecipientType

Gets or sets the type of entity that is represented by the list of recipients. Required.

RegardingId RegardingId RegardingId RegardingId

Gets or sets the ID of a record that the email is regarding. Required.

RegardingType RegardingType RegardingType RegardingType

Gets or sets the type of entity that is represented by the regarding ID. Required.

RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
Sender Sender Sender Sender

Gets or sets the sender of the email.

TemplateId TemplateId TemplateId TemplateId

Gets or sets the ID of the template to be used for the email. Required.

Applies to

See also