Dijeli putem


CRUDExtentions.CreateNewActivityEntry Method

Definition

Creates a new activity against the target entity type

public static Guid CreateNewActivityEntry (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string activityEntityTypeName, string regardingEntityTypeName, Guid regardingId, string subject, string description, string creatingUserId, System.Collections.Generic.Dictionary<string,Microsoft.PowerPlatform.Dataverse.Client.DataverseDataTypeWrapper> fieldList = default, Guid batchId = default, bool bypassPluginExecution = false);
static member CreateNewActivityEntry : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * string * Guid * string * string * string * System.Collections.Generic.Dictionary<string, Microsoft.PowerPlatform.Dataverse.Client.DataverseDataTypeWrapper> * Guid * bool -> Guid
<Extension()>
Public Function CreateNewActivityEntry (serviceClient As ServiceClient, activityEntityTypeName As String, regardingEntityTypeName As String, regardingId As Guid, subject As String, description As String, creatingUserId As String, Optional fieldList As Dictionary(Of String, DataverseDataTypeWrapper) = Nothing, Optional batchId As Guid = Nothing, Optional bypassPluginExecution As Boolean = false) As Guid

Parameters

serviceClient
ServiceClient

ServiceClient

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,DataverseDataTypeWrapper>

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

bypassPluginExecution
Boolean

Adds the bypass plugin behavior to this request. Note: this will only apply if the caller has the prvBypassPlugins permission to bypass plugins. If its attempted without the permission the request will fault.

Returns

Guid of Activity ID or Guid.empty

Applies to