OrganizationServiceProxy.Retrieve(String, Guid, ColumnSet) OrganizationServiceProxy.Retrieve(String, Guid, ColumnSet) OrganizationServiceProxy.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

Parameters

entityName
String String String

Type: String. The logical name of the entity specified in the entityId parameter.

id
Guid Guid Guid

Type: Guid. The ID of the record you want to retrieve.

columnSet
ColumnSet ColumnSet ColumnSet

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

Returns

Type: Entity.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