CrmServiceClient.CreateNewRecord Method (String, Dictionary<String, CrmDataTypeWrapper>, String, Boolean, Guid)
Applies To: Dynamics CRM 2015
Uses the dynamic entity patter to create a new entity
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public Guid CreateNewRecord(
string entityName,
Dictionary<string, CrmDataTypeWrapper> valueArray,
string applyToSolution = "",
bool enabledDuplicateDetection = false,
Guid batchId = null
)
public:
Guid CreateNewRecord(
String^ entityName,
Dictionary<String^, CrmDataTypeWrapper^>^ valueArray,
String^ applyToSolution = "",
bool enabledDuplicateDetection = false,
Guid batchId = null
)
member CreateNewRecord :
entityName:string *
valueArray:Dictionary<string, CrmDataTypeWrapper> *
applyToSolution:string = "" *
enabledDuplicateDetection:bool = false *
batchId:Guid = null -> Guid
Public Function CreateNewRecord (
entityName As String,
valueArray As Dictionary(Of String, CrmDataTypeWrapper),
applyToSolution As String,
enabledDuplicateDetection As Boolean,
batchId As Guid
) As Guid
Parameters
entityName
Type: System.StringName of Entity To create
valueArray
Type: System.Collections.Generic.Dictionary<String, CrmDataTypeWrapper>Initial Values
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.Guid
Guid on Success, Guid.Empty on fail
See Also
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright