Поделиться через


OrganizationServiceProxy.Create Method (Entity)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Creates a record.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

public Guid Create(
    Entity entity
)
Public Function Create (
    entity As Entity
) As Guid

Parameters

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 Organization Service to read and write data or metadata

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright