다음을 통해 공유


CrmServiceClient.CreateNewRecord Method

Definition

Uses the dynamic entity patter to create a new entity

public Guid CreateNewRecord (string entityName, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> valueArray, string applyToSolution = "", bool enabledDuplicateDetection = false, Guid batchId = default);
member this.CreateNewRecord : string * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * string * bool * Guid -> Guid
Public Function CreateNewRecord (entityName As String, valueArray As Dictionary(Of String, CrmDataTypeWrapper), Optional applyToSolution As String = "", Optional enabledDuplicateDetection As Boolean = false, Optional batchId As Guid = Nothing) As Guid

Parameters

entityName
String

Name of Entity To create

valueArray
Dictionary<String,CrmDataTypeWrapper>

Initial Values

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

Guid on Success, Guid.Empty on fail

Applies to