OrganizationServiceProxy.Create(Entity) 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.
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
Public Function Create (entity As Entity) As Guid
Parameters
- entity
- Entity
An entity instance that contains the properties to set in the newly created record.
Returns
The 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.