OrganizationServiceContextExtensions.CreateActivitiesList Method (OrganizationServiceContext, Guid, String, Entity, Guid, Boolean, Object, EntityReference, Boolean, Boolean, Guid)
Applies To: Dynamics CRM 2013
Creates the activities for a list. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid CreateActivitiesList(
this OrganizationServiceContext context,
Guid listId,
string friendlyName,
Entity activity,
Guid templateId,
bool propagate,
object ownershipOptions,
EntityReference owner,
bool sendEmail,
bool postWorkflowEvent,
Guid queueId
)
public:
[ExtensionAttribute]
static Guid CreateActivitiesList(
OrganizationServiceContext^ context,
Guid listId,
String^ friendlyName,
Entity^ activity,
Guid templateId,
bool propagate,
Object^ ownershipOptions,
EntityReference^ owner,
bool sendEmail,
bool postWorkflowEvent,
Guid queueId
)
static member CreateActivitiesList :
context:OrganizationServiceContext *
listId:Guid *
friendlyName:string *
activity:Entity *
templateId:Guid *
propagate:bool *
ownershipOptions:Object *
owner:EntityReference *
sendEmail:bool *
postWorkflowEvent:bool *
queueId:Guid -> Guid
<ExtensionAttribute>
Public Shared Function CreateActivitiesList (
context As OrganizationServiceContext,
listId As Guid,
friendlyName As String,
activity As Entity,
templateId As Guid,
propagate As Boolean,
ownershipOptions As Object,
owner As EntityReference,
sendEmail As Boolean,
postWorkflowEvent As Boolean,
queueId As Guid
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
listId
Type: System.GuidThe ID of the list. Required.
friendlyName
Type: System.StringA user-identifiable name for the campaign. Required.
activity
Type: Microsoft.Xrm.Sdk.EntityThe activity to be distributed. Required.
templateId
Type: System.GuidThe ID of the email template. Required.
propagate
Type: System.BooleanA value that indicates whether the activity is created and executed. Required.
ownershipOptions
Type: System.ObjectThe propagation ownership options. Required.
owner
Type: Microsoft.Xrm.Sdk.EntityReferenceThe owner for the activity. Required.
sendEmail
Type: System.BooleanA value that indicates whether to send an email about the new activity. Required.
postWorkflowEvent
Type: System.BooleanA value that indicates whether an asynchronous job is used to create the activities. Required.
queueId
Type: System.GuidThe ID of the queue to which the created activities are added. Required.
Return Value
Type: System.Guid
Returns a Guid, the ID of the bulk operation created to distribute the campaign activity.
Remarks
This is a method wrapper for the CreateActivitiesListRequest and CreateActivitiesListResponse 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 2013
Return to top