OrganizationServiceProxy.Create(Entity) OrganizationServiceProxy.Create(Entity) OrganizationServiceProxy.Create(Entity) Method

Definition

Creates a record.

public:
 virtual Guid Create(Microsoft::Xrm::Sdk::Entity ^ entity);
public Guid Create (Microsoft.Xrm.Sdk.Entity entity);
abstract member Create : Microsoft.Xrm.Sdk.Entity -> Guid
override this.Create : Microsoft.Xrm.Sdk.Entity -> Guid

Parameters

entity
Entity Entity Entity

Type: Entity. An entity instance that contains the properties to set in the newly created record.

Returns

Type: GuidThe ID of the created entity.

Implements

Remarks

The core implementation of the Create method. For more information, see IOrganizationService.Create(Entity).

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.

Applies to