RetrieveOrganizationRequest Class

Definition

Contains the data that is needed to retrieve information about an organization.

public ref class RetrieveOrganizationRequest sealed : Microsoft::Xrm::Sdk::Discovery::DiscoveryRequest
[System.Runtime.Serialization.DataContract(Name="RetrieveOrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery")]
public sealed class RetrieveOrganizationRequest : Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest
[<System.Runtime.Serialization.DataContract(Name="RetrieveOrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery")>]
type RetrieveOrganizationRequest = class
    inherit DiscoveryRequest
Public NotInheritable Class RetrieveOrganizationRequest
Inherits DiscoveryRequest
Inheritance
RetrieveOrganizationRequest
Attributes

Examples

// Retrieve details about a single organization discoverable via the Discovery service.
//
RetrieveOrganizationRequest orgRequest =
    new RetrieveOrganizationRequest()
    {
        UniqueName = organizations.Details[organizations.Details.Count -1].UniqueName,
        AccessType = EndpointAccessType.Default,
        Release = OrganizationRelease.Current
    };
RetrieveOrganizationResponse org =
    (RetrieveOrganizationResponse)svc.Execute(orgRequest);

DiscoveryService#DiscoveryService3 DiscoveryServiceVB#DiscoveryService3

Remarks

Message Availability

For this message to work, the caller must be connected to the server.

Usage

Pass an instance of this class to the Execute(DiscoveryRequest) method.

Privileges and Access Rights

To perform this action, the caller must have a system user account in Microsoft Dynamics 365.

Constructors

RetrieveOrganizationRequest()

Initializes a new instance of the RetrieveOrganizationRequest class.

Properties

AccessType

Gets or sets the access type of the organization’s service endpoint.

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from DiscoveryRequest)
Release

Indicates the applicable version of Microsoft Dynamics 365.

UniqueName

Gets or sets the unique name of the organization.

Applies to

See also