Partager via


CRUDExtentions.CreateAnnotation Method

Definition

This creates a annotation [note] entry, related to a an existing entity

Required Properties in the fieldList

notetext (string) = Text of the note,

subject (string) = this is the title of the note

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

Parameters

serviceClient
ServiceClient

ServiceClient

targetEntityTypeName
String

Target Entity TypeID

targetEntityId
Guid

Target Entity ID

fieldList
Dictionary<String,DataverseDataTypeWrapper>

Fields to populate

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

Applies to