Dela via


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

 

Applies To: Dynamics CRM 2015

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:
bool UpdateEntity(
    String^ entityName,
    String^ keyFieldName,
    Guid id,
    Dictionary<String^, CrmDataTypeWrapper^>^ fieldList,
    String^ applyToSolution = "",
    bool enabledDuplicateDetection = false,
    Guid batchId = null
)
member UpdateEntity : 
        entityName:string *
        keyFieldName:string *
        id:Guid *
        fieldList:Dictionary<string, CrmDataTypeWrapper> *
        applyToSolution:string = "" *
        enabledDuplicateDetection:bool = false *
        batchId:Guid = null -> bool
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.String

    String version of the entity name

  • 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

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright