Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Description

This method is not in production yet. It will be available soon.

This web method is used to get Tenants for the logged in user’s company from the database. If BuildingId is provided, it will output all the tenants created by logged in user's company in the provided building. Otherwise it will output all the tenants created by logged in user’s company.

Request

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
inputGetTenantsInputMandatoryNot relevantGet Tenants Input


Request - input sample

<GetTenants>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <BuildingPlantId>7032</BuildingPlantId>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</GetTenants>

Response

TypeDescription
GetTenantsOutputTenants output


Response - output sample

GetTenants>
  <MethodParameters>
    <GetTenantsOutput>
      <Tenants attr0="TenantDetailsArray" isNull="false">
        <TenantDetailsArray0>
          <OrganizationNumber>964317828</OrganizationNumber>
          <CompanyName>MALERFIRMA TVILLINGENE AS</CompanyName>
          <TenantAddress attr0="StringArray" isNull="false">
            <StringArray0>Dalssvingen 19B, 1285 OSLO</StringArray0>
          </TenantAddress>
          <ConnectedBuildingPlantId>7032</ConnectedBuildingPlantId>
          <TenantPlantId>23</TenantPlantId>
          <CompanyOwners>BODIL HELLUM</CompanyOwners>
          <ContactPersonName isNull="true" />
          <ContactPersonPhone isNull="true" />
          <ContactPersonEmail isNull="true" />
          <Documentcount>1</Documentcount>
          <ConnectedDate>1/1/0001 12:00:00 AM</ConnectedDate>
          <UpdatedDate>1/1/0001 12:00:00 AM</UpdatedDate>
        </TenantDetailsArray0>
        <TenantDetailsArray1>
          <OrganizationNumber>982025435</OrganizationNumber>
          <CompanyName>EGIL KORSMO AS</CompanyName>
          <TenantAddress attr0="StringArray" isNull="false">
            <StringArray0>Dalssvingen 19B, 1285 OSLO</StringArray0>
          </TenantAddress>
          <ConnectedBuildingPlantId>7032</ConnectedBuildingPlantId>
          <TenantPlantId>33</TenantPlantId>
          <CompanyOwners>EGIL KORSMO</CompanyOwners>
          <ContactPersonName>Egil Korsmo</ContactPersonName>
          <ContactPersonPhone isNull="true" />
          <ContactPersonEmail isNull="true" />
          <Documentcount>0</Documentcount>
          <ConnectedDate>1/1/0001 12:00:00 AM</ConnectedDate>
          <UpdatedDate>1/1/0001 12:00:00 AM</UpdatedDate>
        </TenantDetailsArray1>
      </Tenants>
    </GetTenantsOutput>
  </MethodParameters>
</GetTenants>

Exceptions

Error CodeDescription

123

An exception occurred while processing your request

138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
398Either the building does not exist or a building plant has not been created for it
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.