RetrieveOrganizationsRequest Class

Definition

Contains the data that is needed to retrieve information on all organizations that the logged on user belongs to.

public ref class RetrieveOrganizationsRequest sealed : Microsoft::Xrm::Sdk::Discovery::DiscoveryRequest
[System.Runtime.Serialization.DataContract(Name="RetrieveOrganizationsRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery")]
public sealed class RetrieveOrganizationsRequest : Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest
[<System.Runtime.Serialization.DataContract(Name="RetrieveOrganizationsRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery")>]
type RetrieveOrganizationsRequest = class
    inherit DiscoveryRequest
Public NotInheritable Class RetrieveOrganizationsRequest
Inherits DiscoveryRequest
Inheritance
RetrieveOrganizationsRequest
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#DiscoveryService2 DiscoveryServiceVB#DiscoveryService2

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

RetrieveOrganizationsRequest()

Initializes a new instance of the RetrieveOrganizationsRequest class.

Properties

AccessType

Gets or sets the access type of the organizations’ service endpoint.

ExtensionData

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

(Inherited from DiscoveryRequest)
IsInternalCrossGeoServerRequest

For internal use only.

Release

Get or sets the release version of a Microsoft Dynamics 365 organization.

Applies to

See also