OrganizationServiceContextExtensions.DistributeCampaignActivity Kaedah

Applies To: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Creates a bulk operation to distribute the activity, creating the appropriate activity for each member in the list for the specified campaign activity. (Developer Extensions)

Ruang nama: Microsoft.Xrm.Client.Messages
Perhimpunan: Microsoft.Xrm.Client (dalam Microsoft.Xrm.Client.dll)

Dim context As OrganizationServiceContext
Dim campaignActivityId As Guid
Dim propagate As Boolean
Dim activity As Entity
Dim templateId As Guid
Dim ownershipOptions As Object
Dim owner As EntityReference
Dim sendEmail As Boolean
Dim queueId As Guid
Dim returnValue As Guid

returnValue = OrganizationServiceContextExtensions.DistributeCampaignActivity(context, campaignActivityId, propagate, activity, templateId, ownershipOptions, owner, sendEmail, queueId)

public static Guid DistributeCampaignActivity (
	OrganizationServiceContext context,
	Guid campaignActivityId,
	bool propagate,
	Entity activity,
	Guid templateId,
	Object ownershipOptions,
	EntityReference owner,
	bool sendEmail,
	Guid queueId



The organization service context.


The ID of the campaign activity for which the activity is distributed. Required.


A value that indicates whether the activity is both created and executed. Required.


The activity to be distributed. Required.


the ID of the email template. Required.


The ownership options for the activity. Required.


The owner for the newly created activity. Required.


A value that indicates whether to send an email about the new activity. Required.


The ID of the queue to which the created activity is added. Optional.

Nilai Pulangan

Returns a Guid, the ID of the bulk operation that is used to distribute the campaign activity.

This is a method wrapper for the DistributeCampaignActivityRequest and DistributeCampaignActivityResponse classes. See the documentation in the Request class for more information about this message.

Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.