AssociateProjectDocumentsToBuilding

Description

This method is used by the project owner to associate documents of a project to the relevant buildings.

Request

ParameterTypeMandatory/OptionalMaximum character length/limitDescription  
documentIdListList<long>Mandatory Not relevant

Ids of the list of documents to be associated to the building

boligmappaNumberstringMandatory Not relevantA number generated by Boligmappa to uniquely identify properties registered in Boligmappa. (e.g. AAF1234)
applicationNamestringMandatory Should be less than or equal to 10 charactersThe name of the integration partner

 

Request - sample input

<AssociateProjectDocumentsToBuilding>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <documentIdList attr0="Int64Array" isNull="false">
      <Int64Array0>57227</Int64Array0>
    </documentIdList>
    <boligmappaNumber>KAA2400</boligmappaNumber>
    <applicationName>test</applicationName>
  </MethodParameters>
</AssociateProjectDocumentsToBuilding>

Response

TypeDescription
List<DocumentAssociationStatus>List of document association statuses


Response - sample output

<AssociateProjectDocumentsToBuilding>
  <MethodParameters>
    <DocumentAssociationStatusArray>
      <DocumentAssociationStatusArray0>
        <DocumentId>57227</DocumentId>
        <CompanyId>197</CompanyId>
        <Status>True</Status>
      </DocumentAssociationStatusArray0>
    </DocumentAssociationStatusArray>
  </MethodParameters>
</AssociateProjectDocumentsToBuilding>

Exceptions

Error CodeDescription
123An exception occurred while processing your request
134Document does not exist for the given documentId
138applicationName length has exceeded the maximum character limit allowed (10)
146The applicationName is not set
167You are not authorized to use this web method
176boligmappaNumber is not provided
223 The given project is not owned by the company or does not exist, therefore this action cannot be performed
239

Invalid boligmappaNumber. 

240Documents to be copied are not provided
242Provide documents from a single project at a given time
250A document provided does not belong to the project
251Documents provided do not belong to a valid project