CrmServiceClient.CreateNewRecord(String, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) CrmServiceClient.CreateNewRecord(String, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) CrmServiceClient.CreateNewRecord(String, Dictionary<String,CrmDataTypeWrapper>, String, Boolean, Guid) 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 = null);
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 = null) As Guid

Parameters

entityName
String String String

Name of Entity To create

valueArray
Dictionary<String,CrmDataTypeWrapper>

Initial Values

applyToSolution
String String String

Optional: Applies the update with a solution by Unique name

enabledDuplicateDetection
Boolean Boolean Boolean

Optional: if true, enabled CRM onboard duplicate detection

batchId
Guid Guid 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

Remarks

Applies to