CrmServiceClient.UpdateEntity Method (String, String, Guid, Dictionary<String, CrmDataTypeWrapper>, String, Boolean, Guid)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Generic update entity
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public bool UpdateEntity(
string entityName,
string keyFieldName,
Guid id,
Dictionary<string, CrmDataTypeWrapper> fieldList,
string applyToSolution = "",
bool enabledDuplicateDetection = false,
Guid batchId = null
)
Public Function UpdateEntity (
entityName As String,
keyFieldName As String,
id As Guid,
fieldList As Dictionary(Of String, CrmDataTypeWrapper),
applyToSolution As String,
enabledDuplicateDetection As Boolean,
batchId As Guid
) As Boolean
Parameters
entityName
Type: System.StringString version of the entity name
keyFieldName
Type: System.StringKey fieldname of the entity
id
Type: System.GuidGuid ID of the entity to update
fieldList
Type: System.Collections.Generic.Dictionary<String, CrmDataTypeWrapper>Fields to update
applyToSolution
Type: System.StringOptional: Applies the update with a solution by Unique name
enabledDuplicateDetection
Type: System.BooleanOptional: if true, enabled CRM onboard duplicate detection
batchId
Type: System.GuidOptional: 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
Return Value
Type: System.Boolean
true on success, false on fail
See Also
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright