CrmServiceClient.UpdateEntity(String, String, Guid, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) Method

Definition

Generic update entity.

public bool UpdateEntity (string entityName, string keyFieldName, Guid id, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList, string applyToSolution = "", bool enabledDuplicateDetection = false, Guid batchId = default);
member this.UpdateEntity : string * string * Guid * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * string * bool * Guid -> bool
Public Function UpdateEntity (entityName As String, keyFieldName As String, id As Guid, fieldList As Dictionary(Of String, CrmDataTypeWrapper), Optional applyToSolution As String = "", Optional enabledDuplicateDetection As Boolean = false, Optional batchId As Guid = Nothing) As Boolean

Parameters

entityName
String

String version of the entity name.

keyFieldName
String

Key fieldname of the entity.

id
Guid

Guid of the entity to update.

fieldList
Dictionary<String,CrmDataTypeWrapper>

Fields to update.

applyToSolution
String

Optional: Applies the update with a solution by unique name.

enabledDuplicateDetection
Boolean

Optional: If true, enabled Common Data Service 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.

Returns

Boolean

True on success, false on fail.

Remarks

Applies to