DistributeCampaignActivityRequest Class

Definition

Contains the data that is needed to create a bulk operation that distributes a campaign activity. The appropriate activities, such as a phone call or fax, are created for the members of the list that is associated with the specified campaign activity.

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

Remarks

This message requires Dynamics 365 Sales.

For the Web API use the DistributeCampaignActivity action.

Usage

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

Privileges and Access Rights

To perform this action, the caller must have privileges on the CampaignActivity, Queue, and Template entities and on the specified entity in the Activity property. You must also have access rights on the specified records in the following properties: CampaignActivityId, QueueId, and TemplateId. For a complete list of the required privileges, see DistributeCampaignActivity message privileges.

Notes for Callers

This operation distributes activities that specify a recipient: phone call, appointment, letter, letter via mail merge, fax, fax via mail merge, email, and email via mail merge.

Constructors

DistributeCampaignActivityRequest()

Initializes a new instance of the DistributeCampaignActivityRequest class.

Properties

Activity

Gets or sets the activity to be distributed. Required.

CampaignActivityId

Gets or sets the ID of the campaign activity for which the activity is distributed. Required.

ExtensionData

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

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Owner

Gets or sets the owner for the newly created activity. Required.

OwnershipOptions

Gets or sets the ownership options for the activity. Required.

Parameters

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

(Inherited from OrganizationRequest)
PostWorkflowEvent

Gets or sets a value that indicates whether an asynchronous job is used to distribute activities, such as an email, fax, or letter, to the members of a list. Required.

Propagate

Gets or sets a value that indicates whether the activity is both created and executed. Required.

QueueId

Gets or sets the ID of the queue to which the created activity is added. Optional.

RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

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

(Inherited from OrganizationRequest)
SendEmail

Gets or sets a value that indicates whether to send an email about the new activity. Required.

TemplateId

Gets or sets the ID of the email template. Required.

Applies to

See also