POST api/Values/FindOrganization?orgUniqueName={orgUniqueName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orgUniqueName

string

Required

Body Parameters

Collection of OrganizationDetail
NameDescriptionTypeAdditional information
OrganizationId

globally unique identifier

None.

FriendlyName

string

None.

OrganizationVersion

string

None.

UrlName

string

None.

UniqueName

string

None.

Endpoints

Collection of Object

None.

State

OrganizationState

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OrganizationId": "4a54845c-4312-4848-a339-4c60fead7a76",
    "FriendlyName": "sample string 2",
    "OrganizationVersion": "sample string 3",
    "UrlName": "sample string 4",
    "UniqueName": "sample string 5",
    "Endpoints": null,
    "State": 0
  },
  {
    "OrganizationId": "4a54845c-4312-4848-a339-4c60fead7a76",
    "FriendlyName": "sample string 2",
    "OrganizationVersion": "sample string 3",
    "UrlName": "sample string 4",
    "UniqueName": "sample string 5",
    "Endpoints": null,
    "State": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrganizationDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery">
  <OrganizationDetail>
    <Endpoints i:nil="true" />
    <FriendlyName>sample string 2</FriendlyName>
    <OrganizationId>4a54845c-4312-4848-a339-4c60fead7a76</OrganizationId>
    <OrganizationVersion>sample string 3</OrganizationVersion>
    <State>Enabled</State>
    <UniqueName>sample string 5</UniqueName>
    <UrlName>sample string 4</UrlName>
  </OrganizationDetail>
  <OrganizationDetail>
    <Endpoints i:nil="true" />
    <FriendlyName>sample string 2</FriendlyName>
    <OrganizationId>4a54845c-4312-4848-a339-4c60fead7a76</OrganizationId>
    <OrganizationVersion>sample string 3</OrganizationVersion>
    <State>Enabled</State>
    <UniqueName>sample string 5</UniqueName>
    <UrlName>sample string 4</UrlName>
  </OrganizationDetail>
</ArrayOfOrganizationDetail>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrganizationDetail[]'.

Response Information

Resource Description

OrganizationDetail
NameDescriptionTypeAdditional information
OrganizationId

globally unique identifier

None.

FriendlyName

string

None.

OrganizationVersion

string

None.

UrlName

string

None.

UniqueName

string

None.

Endpoints

Collection of Object

None.

State

OrganizationState

None.

Response Formats

application/json, text/json

Sample:
{
  "OrganizationId": "c7e9842d-3c7e-4083-9792-7f45c8a63101",
  "FriendlyName": "sample string 2",
  "OrganizationVersion": "sample string 3",
  "UrlName": "sample string 4",
  "UniqueName": "sample string 5",
  "Endpoints": null,
  "State": 0
}

application/xml, text/xml

Sample:
<OrganizationDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Discovery">
  <Endpoints i:nil="true" />
  <FriendlyName>sample string 2</FriendlyName>
  <OrganizationId>c7e9842d-3c7e-4083-9792-7f45c8a63101</OrganizationId>
  <OrganizationVersion>sample string 3</OrganizationVersion>
  <State>Enabled</State>
  <UniqueName>sample string 5</UniqueName>
  <UrlName>sample string 4</UrlName>
</OrganizationDetail>