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

  • listId
    Type: System.Guid

    The ID of the list. Required.

  • friendlyName
    Type: System.String

    A user-identifiable name for the campaign. Required.

  • templateId
    Type: System.Guid

    The ID of the email template. Required.

  • propagate
    Type: System.Boolean

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

  • ownershipOptions
    Type: System.Object

    The propagation ownership options. Required.

  • sendEmail
    Type: System.Boolean

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

  • postWorkflowEvent
    Type: System.Boolean

    A value that indicates whether an asynchronous job is used to create the activities. Required.

  • queueId
    Type: System.Guid

    The 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