OrganizationServiceProxy.Create Method (Entity)
Applies To: Dynamics CRM 2015
Creates a record.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public Guid Create(
Entity entity
)
public:
virtual Guid Create(
Entity^ entity
) sealed
abstract Create :
entity:Entity -> Guid
override Create :
entity:Entity -> Guid
Public Function Create (
entity As Entity
) As Guid
Parameters
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. An entity instance that contains the properties to set in the newly created record.
Return Value
Type: System.Guid
Type: Guid
The ID of the created entity.
Implements
IOrganizationService.Create(Entity)
Remarks
The core implementation of the Create method. For more information, see IOrganizationService.Create.
For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.
See Also
OrganizationServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
Troubleshooting and error handling
Use the IOrganizationService web service to read and write data or metadata
Return to top
© 2016 Microsoft. All rights reserved. Copyright