Web Service: AddCompaniesToProject
This method is used to add a list of companies to a Boligmappa Project. Only the company that owns the project can execute this method. If a given company successfully adds a project, an email is sent to the project contact person notifying them that their company has been added to the project. The status for each company is returned in the output.
NOTE! A company needs to be added to the project to be able to access the Boligmappa Project and perform actions. Invited companies needs to be listed in Brønnøysund register. Please use "GetCompanies" to retrieve and view lot of useful and detailed information the Company to invite.
|Parameter||Type||Mandatory/Optional||Maximum character length/limit||Description|
|projectId||long||Mandatory||Not relevant||The Id of the project to which the companies are added. Note that only a user of the company that created the project can execute this method.|
List of companies to be added.
A company can be provided either by giving the CompanyId or an OrganizationNumber. (Use GetCompanies method to get a list of all the available CompanyIds). If an OrganizationNumber that does not exist in the Boligmappa system is entered, third party services like Brønnøysundregisteret is used to retrieve the required details for the company and added to the system.
It is mandatory to provide either the CompanyId or the OrganizationNumber. Preference is given to the CompanyId, if both the CompanyId and the OrganizationNumber is provided.
|Should be less than or equal to 10 characters||
The name of the integration partner
Request - sample input
<AnyAttr attr0="XmlAttributeArray" isNull="false">
<companies attr0="CompanyInputArray" isNull="false">
<ContactPersonName isNull="false" />
|List<AddCompanyToProjectStatus>||A status list of companies that were either successfully added or not added.|
Response - sample output
|123||An exception occurred while processing your request|
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|
The given project is not owned by the company or does not exist, therefore this action cannot be performed
|225||Company already exists in the project|
|227||The project does not exist or the company is not connected to the given project|
|258||Unable to find a company registered to the given OrganizationNumber|
|259||Either a CompanyId or an OrganizationNumber must be provided to identify a company|
|260||The ContactPersonEmail is not valid|
|261||Neither CompanyId or OrganizationNumber is provided|
|264||The ContactPersonEmail is required|
|265||Company is added to the project, but the notification mail submission has failed|
|295||Third party company search services are unavailable|
|336||ContactPersonName length has exceeded the maximum character limit allowed (50)|