Share via


CRUDExtentions.UpdateEntity Method

Definition

Generic update entity

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

Parameters

serviceClient
ServiceClient

ServiceClient

entityName
String

String version of the entity name

keyFieldName
String

Key fieldname of the entity

id
Guid

Guid ID of the entity to update

fieldList
Dictionary<String,DataverseDataTypeWrapper>

Fields to update

applyToSolution
String

Optional: Applies the update with a solution by Unique name

enabledDuplicateDetection
Boolean

Optional: if true, enabled Dataverse onboard duplicate detection

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

true on success, false on fail

Applies to