OrganizationWebProxyClient.Retrieve(String, Guid, ColumnSet) Method

Definition

Retrieves a record.

public:
 virtual Microsoft::Xrm::Sdk::Entity ^ Retrieve(System::String ^ entityName, Guid id, Microsoft::Xrm::Sdk::Query::ColumnSet ^ columnSet);
public Microsoft.Xrm.Sdk.Entity Retrieve (string entityName, Guid id, Microsoft.Xrm.Sdk.Query.ColumnSet columnSet);
abstract member Retrieve : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet -> Microsoft.Xrm.Sdk.Entity
override this.Retrieve : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet -> Microsoft.Xrm.Sdk.Entity
Public Function Retrieve (entityName As String, id As Guid, columnSet As ColumnSet) As Entity

Parameters

entityName
String

The logical name of the entity specified in the entityId parameter.

id
Guid

The ID of the record you want to retrieve.

columnSet
ColumnSet

A query that specifies the set of columns, or attributes, to retrieve.

Returns

The requested entity.

Implements

Remarks

The core implementation of the Retrieve method. For more information, see IOrganizationService.Retrieve(String, Guid, ColumnSet).

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

Applies to