CrmServiceClient.CreateNewActivityEntry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = default, Guid batchId = default);
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) = Nothing, Optional batchId As Guid = Nothing) As Guid
Parameters
- activityEntityTypeName
- String
Type of Activity you would like to create
- regardingEntityTypeName
- String
Entity type of the Entity you want to associate with.
- regardingId
- Guid
ID of the Entity to associate the Activity too
- subject
- String
Subject Line of the Activity
- description
- String
Description Text of the Activity
- creatingUserId
- 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
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