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.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
© 2016 Microsoft. All rights reserved. Copyright