AssociateProjectDocumentsToBuilding
Description
This method is used by the project owner to associate documents of a project to the relevant buildings.
Request
Parameter | Type | Mandatory/Optional | Maximum character length/limit | Description |
---|---|---|---|---|
documentIdList | List<long> | Mandatory | Not relevant | Ids of the list of documents to be associated to the building |
boligmappaNumber | string | Mandatory | Not relevant | A number generated by Boligmappa to uniquely identify properties registered in Boligmappa. (e.g. AAF1234) |
applicationName | string | Mandatory | Should be less than or equal to 10 characters | The 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
Type | Description |
---|---|
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 Code | Description |
---|---|
123 | An exception occurred while processing your request |
134 | Document does not exist for the given documentId |
138 | applicationName length has exceeded the maximum character limit allowed (10) |
146 | The applicationName is not set |
167 | You are not authorized to use this web method |
176 | boligmappaNumber 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. |
240 | Documents to be copied are not provided |
242 | Provide documents from a single project at a given time |
250 | A document provided does not belong to the project |
251 | Documents provided do not belong to a valid project |