CrmServiceClient.CreateNewActivityEntry Method (String, String, Guid, String, String, String, Dictionary<String, CrmDataTypeWrapper>, Guid)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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 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.StringType of Activity you would like to create
regardingEntityTypeName
Type: System.StringEntity type of the Entity you want to associate with.
subject
Type: System.StringSubject Line of the Activity
description
Type: System.StringDescription Text of the Activity
regardingId
Type: System.GuidID of the Entity to associate the Activity too
creatingUserId
Type: System.StringUser ID that Created the Activity *Calling user must have necessary permissions to assign to another user
fieldList
Type: System.Collections.Generic.Dictionary<String, CrmDataTypeWrapper>Additional fields to add as part of the activity creation
batchId
Type: System.GuidOptional: 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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright