次の方法で共有


CrmServiceClient.UpdateEntity 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 ID 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 CRM 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

true on success, false on fail

Applies to