CrmServiceClient.CreateNewActivityEntry Method (String, String, Guid, String, String, String, Dictionary<String, CrmDataTypeWrapper>, Guid)

 

Applies To: Dynamics CRM 2015

Creates a new activity against the target entity type

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public Guid CreateNewActivityEntry(
    string activityEntityTypeName,
    string regardingEntityTypeName,
    Guid regardingId,
    string subject,
    string description,
    string creatingUserId,
    Dictionary<string, CrmDataTypeWrapper> fieldList = null,
    Guid batchId = null
)
public:
Guid CreateNewActivityEntry(
    String^ activityEntityTypeName,
    String^ regardingEntityTypeName,
    Guid regardingId,
    String^ subject,
    String^ description,
    String^ creatingUserId,
    Dictionary<String^, CrmDataTypeWrapper^>^ fieldList = null,
    Guid batchId = null
)
member CreateNewActivityEntry : 
        activityEntityTypeName:string *
        regardingEntityTypeName:string *
        regardingId:Guid *
        subject:string *
        description:string *
        creatingUserId:string *
        fieldList:Dictionary<string, CrmDataTypeWrapper> = null *
        batchId:Guid = null -> Guid
Public Function CreateNewActivityEntry (
    activityEntityTypeName As String,
    regardingEntityTypeName As String,
    regardingId As Guid,
    subject As String,
    description As String,
    creatingUserId As String,
    fieldList As Dictionary(Of String, CrmDataTypeWrapper),
    batchId As Guid
) As Guid

Parameters

  • activityEntityTypeName
    Type: System.String

    Type of Activity you would like to create

  • regardingEntityTypeName
    Type: System.String

    Entity type of the Entity you want to associate with.

  • description
    Type: System.String

    Description Text of the Activity

  • regardingId
    Type: System.Guid

    ID of the Entity to associate the Activity too

  • creatingUserId
    Type: System.String

    User ID that Created the Activity *Calling user must have necessary permissions to assign to another user

  • batchId
    Type: System.Guid

    Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Return Value

Type: System.Guid

Guid of Activity ID or Guid.empty

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright