CRUDExtentions.CreateNewRecord Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Uses the dynamic entity patter to create a new entity
public static Guid CreateNewRecord (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string entityName, System.Collections.Generic.Dictionary<string,Microsoft.PowerPlatform.Dataverse.Client.DataverseDataTypeWrapper> valueArray, string applyToSolution = "", bool enabledDuplicateDetection = false, Guid batchId = default, bool bypassPluginExecution = false);
static member CreateNewRecord : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * System.Collections.Generic.Dictionary<string, Microsoft.PowerPlatform.Dataverse.Client.DataverseDataTypeWrapper> * string * bool * Guid * bool -> Guid
<Extension()>
Public Function CreateNewRecord (serviceClient As ServiceClient, entityName As String, valueArray As Dictionary(Of String, DataverseDataTypeWrapper), Optional applyToSolution As String = "", Optional enabledDuplicateDetection As Boolean = false, Optional batchId As Guid = Nothing, Optional bypassPluginExecution As Boolean = false) As Guid
Parameters
- serviceClient
- ServiceClient
ServiceClient
- entityName
- String
Name of Entity To create
- valueArray
- Dictionary<String,DataverseDataTypeWrapper>
Initial Values
- applyToSolution
- String
Optional: Applies the update with a solution by Unique name
- enabledDuplicateDetection
- Boolean
Optional: if true, enabled Dataverse 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
- bypassPluginExecution
- Boolean
Adds the bypass plugin behavior to this request. Note: this will only apply if the caller has the prvBypassPlugins permission to bypass plugins. If its attempted without the permission the request will fault.
Returns
Guid on Success, Guid.Empty on fail