CrmServiceClient.UpdateEntity(String, String, Guid, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) CrmServiceClient.UpdateEntity(String, String, Guid, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) 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 = null);
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 = null) As Boolean

Parameters

entityName
String String String

String version of the entity name

keyFieldName
String String String

Key fieldname of the entity

id
Guid Guid Guid

Guid ID of the entity to update

fieldList
Dictionary<String,CrmDataTypeWrapper>

Fields to update

applyToSolution
String String String

Optional: Applies the update with a solution by Unique name

enabledDuplicateDetection
Boolean Boolean Boolean

Optional: if true, enabled CRM onboard duplicate detection

batchId
Guid Guid 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

true on success, false on fail

Remarks

Applies to