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

 

Updated: November 29, 2016

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)

public bool UpdateEntity(
	string entityName,
	string keyFieldName,
	Guid id,
	Dictionary<string, CrmDataTypeWrapper> fieldList,
	string applyToSolution = "",
	bool enabledDuplicateDetection = false,
	Guid batchId = null
)

Parameters

entityName
Type: System.String

String version of the entity name

keyFieldName
Type: System.String

Key fieldname of the entity

id
Type: System.Guid

Guid ID of the entity to update

fieldList
Type: System.Collections.Generic.Dictionary<String, CrmDataTypeWrapper>

Fields to update

applyToSolution
Type: System.String

Optional: Applies the update with a solution by Unique name

enabledDuplicateDetection
Type: System.Boolean

Optional: if true, enabled CRM onboard duplicate detection

batchId
Type: System.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

Return Value

Type: System.Boolean

true on success, false on fail

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: