GET BusinessUnit/Base/All

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BusinessUnit
NameDescriptionTypeAdditional information
BusinessUnitCode

string

None.

Name

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

LegalEntityId

decimal number

None.

SortOrder

integer

None.

CompanyCode

string

None.

CountryCode

string

None.

Area

Collection of Area

None.

ExperimentBusinessUnitArea

Collection of ExperimentBusinessUnitArea

None.

SeedRequest

Collection of SeedRequest

None.

Territory

Collection of Territory

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  null,
  {
    "$id": "1",
    "BusinessUnitCode": "sample string 1",
    "Name": "sample string 2",
    "LastMaintenanceName": "sample string 3",
    "LastMaintenanceDate": "2024-12-10T16:17:08.8267339+00:00",
    "LegalEntityId": 1.0,
    "SortOrder": 1,
    "CompanyCode": "sample string 5",
    "CountryCode": "sample string 6",
    "Area": [
      {
        "$id": "2",
        "AreaCode": "sample string 1",
        "Name": "sample string 2",
        "BusinessUnitCode": "sample string 1",
        "LastMaintenanceName": "sample string 4",
        "LastMaintenanceDate": "2024-12-10T16:17:08.8267339+00:00",
        "BusinessUnit": {
          "$ref": "1"
        },
        "Territory": [
          {
            "$id": "3",
            "TerritoryCode": "sample string 1",
            "Name": "sample string 2",
            "AreaCode": "sample string 1",
            "BusinessUnitCode": "sample string 1",
            "LastMaintenanceName": "sample string 5",
            "LastMaintenanceDate": "2024-12-10T16:17:08.8267339+00:00",
            "Region": "sample string 7",
            "ManagerName": "sample string 8",
            "DistrictCode": "sample string 9",
            "CountryCode": "sample string 10",
            "CompanyCode": "sample string 11",
            "Area": {
              "$ref": "2"
            },
            "BusinessUnit": {
              "$ref": "1"
            },
            "ChangeTracker": {
              "$id": "4",
              "State": 2,
              "ObjectsRemovedFromCollectionProperties": {},
              "OriginalValues": {},
              "ExtendedProperties": {},
              "ObjectsAddedToCollectionProperties": {}
            }
          }
        ],
        "ChangeTracker": {
          "$id": "5",
          "State": 2,
          "ObjectsRemovedFromCollectionProperties": {},
          "OriginalValues": {},
          "ExtendedProperties": {},
          "ObjectsAddedToCollectionProperties": {
            "Territory": [
              {
                "$ref": "3"
              }
            ]
          }
        }
      }
    ],
    "ExperimentBusinessUnitArea": [],
    "SeedRequest": [],
    "Territory": [
      {
        "$ref": "3"
      }
    ],
    "ChangeTracker": {
      "$id": "6",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {
        "Area": [
          {
            "$ref": "2"
          }
        ],
        "Territory": [
          {
            "$ref": "3"
          }
        ]
      }
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfBusinessUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <BusinessUnit i:nil="true" />
  <BusinessUnit z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <Area>
      <Area z:Id="i2">
        <AreaCode>sample string 1</AreaCode>
        <BusinessUnit z:Ref="i1" />
        <BusinessUnitCode>sample string 1</BusinessUnitCode>
        <ChangeTracker z:Id="i3">
          <ExtendedProperties />
          <ObjectsAddedToCollectionProperties>
            <AddedObjectsForProperty>
              <CollectionPropertyName>Territory</CollectionPropertyName>
              <AddedObjects>
                <ObjectValue z:Id="i4" i:type="Territory">
                  <Area z:Ref="i2" />
                  <AreaCode>sample string 1</AreaCode>
                  <BusinessUnit z:Ref="i1" />
                  <BusinessUnitCode>sample string 1</BusinessUnitCode>
                  <ChangeTracker z:Id="i5">
                    <ExtendedProperties />
                    <ObjectsAddedToCollectionProperties />
                    <ObjectsRemovedFromCollectionProperties />
                    <OriginalValues />
                    <State>Added</State>
                  </ChangeTracker>
                  <CompanyCode>sample string 11</CompanyCode>
                  <CountryCode>sample string 10</CountryCode>
                  <DistrictCode>sample string 9</DistrictCode>
                  <LastMaintenanceDate>2024-12-10T16:17:08.8267339+00:00</LastMaintenanceDate>
                  <LastMaintenanceName>sample string 5</LastMaintenanceName>
                  <ManagerName>sample string 8</ManagerName>
                  <Name>sample string 2</Name>
                  <Region>sample string 7</Region>
                  <TerritoryCode>sample string 1</TerritoryCode>
                </ObjectValue>
              </AddedObjects>
            </AddedObjectsForProperty>
          </ObjectsAddedToCollectionProperties>
          <ObjectsRemovedFromCollectionProperties />
          <OriginalValues />
          <State>Added</State>
        </ChangeTracker>
        <LastMaintenanceDate>2024-12-10T16:17:08.8267339+00:00</LastMaintenanceDate>
        <LastMaintenanceName>sample string 4</LastMaintenanceName>
        <Name>sample string 2</Name>
        <Territory>
          <Territory z:Ref="i4" />
        </Territory>
      </Area>
    </Area>
    <BusinessUnitCode>sample string 1</BusinessUnitCode>
    <ChangeTracker z:Id="i6">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties>
        <AddedObjectsForProperty>
          <CollectionPropertyName>Area</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Ref="i2" />
          </AddedObjects>
        </AddedObjectsForProperty>
        <AddedObjectsForProperty>
          <CollectionPropertyName>Territory</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Ref="i4" />
          </AddedObjects>
        </AddedObjectsForProperty>
      </ObjectsAddedToCollectionProperties>
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <CompanyCode>sample string 5</CompanyCode>
    <CountryCode>sample string 6</CountryCode>
    <ExperimentBusinessUnitArea />
    <LastMaintenanceDate>2024-12-10T16:17:08.8267339+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 3</LastMaintenanceName>
    <LegalEntityId>1</LegalEntityId>
    <Name>sample string 2</Name>
    <SeedRequest />
    <SortOrder>1</SortOrder>
    <Territory>
      <Territory z:Ref="i4" />
    </Territory>
  </BusinessUnit>
</ArrayOfBusinessUnit>