IOrganizationServiceAsync.CreateAsync(Entity) Method

Definition

Create an entity and process any related entities.

[System.ServiceModel.OperationContract]
public System.Threading.Tasks.Task<Guid> CreateAsync (Microsoft.Xrm.Sdk.Entity entity);
[<System.ServiceModel.OperationContract>]
abstract member CreateAsync : Microsoft.Xrm.Sdk.Entity -> System.Threading.Tasks.Task<Guid>
Public Function CreateAsync (entity As Entity) As Task(Of Guid)

Parameters

entity
Entity

entity to create

Returns

The ID of the created record.

Attributes

Applies to