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

Definition

Creates a new activity against the target entity type

public Guid CreateNewActivityEntry (string activityEntityTypeName, string regardingEntityTypeName, Guid regardingId, string subject, string description, string creatingUserId, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList = null, Guid batchId = null);
member this.CreateNewActivityEntry : string * string * Guid * string * string * string * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * Guid -> Guid
Public Function CreateNewActivityEntry (activityEntityTypeName As String, regardingEntityTypeName As String, regardingId As Guid, subject As String, description As String, creatingUserId As String, Optional fieldList As Dictionary(Of String, CrmDataTypeWrapper) = null, Optional batchId As Guid = null) As Guid

Parameters

activityEntityTypeName
String String String

Type of Activity you would like to create

regardingEntityTypeName
String String String

Entity type of the Entity you want to associate with.

regardingId
Guid Guid Guid

ID of the Entity to associate the Activity too

subject
String String String

Subject Line of the Activity

description
String String String

Description Text of the Activity

creatingUserId
String String String

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

fieldList
Dictionary<String,CrmDataTypeWrapper>

Additional fields to add as part of the activity creation

batchId
Guid Guid 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

Returns

Guid of Activity ID or Guid.empty

Remarks

Applies to