RemoveCompaniesFromProject

Description

This method is used to remove one or more companies from a project. After a company is removed from a project, users of that company cannot perform the following actions:

  • AddCompaniesToProject
  • GetDocumentsByProject
  • SendDocumentsToProject
  • EditProject
  • GetAllProjects  - The project removed is not displayed in the list

 

Request 

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
companiesToBeRemovedList<RemoveCompanyMandatory Not relevantList of the companies to be removed from the project. Either CompanyIds or OrganizationNumbers should be provided
projectIdlongMandatoryNot relevant

The Id of the project

applicationNamestringMandatory Should be less than or equal to 10 charactersThe name of the integration partner

 

Request - sample input

<RemoveCompaniesFromProject>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <companiesToBeRemoved attr0="CompanyToBeRemovedArray" isNull="false">
      <CompanyToBeRemovedArray0>
        <CompanyId>197</CompanyId>
        <OrganizationNumber>914350840</OrganizationNumber>
      </CompanyToBeRemovedArray0>
    </companiesToBeRemoved>
    <projectId>60</projectId>
    <applicationName>test</applicationName>
  </MethodParameters>
</RemoveCompaniesFromProject>


Response

TypeDescription

List<CompanyRemovalStatus>

 
EditProject method updates the edited project related information and returns the Project Model

 

Response - sample output

RemoveCompaniesFromProject>
  <MethodParameters>
    <CompanyRemovalStatusArray>
      <CompanyRemovalStatusArray0>
        <CompanyId>197</CompanyId>
        <OrganizationNumber>914350840</OrganizationNumber>
        <Status>False</Status>
        <ErrorCode>262</ErrorCode>
      </CompanyRemovalStatusArray0>
    </CompanyRemovalStatusArray>
  </MethodParameters>
</RemoveCompaniesFromProject>

Exceptions

Error CodeDescription
123An exception occurred while processing your request
138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
167You are not authorized to use this method
223

The given project is not owned by the company or does not exist, therefore this action cannot be performed

227The project does not exist or the company is not connected to the given project
228projectId is not provided
249You are not authorized to perform this action
258Unable to find a company registered to the given OrganizationNumber
261Neither CompanyId or OrganizationNumber is provided
262

Company which owns the project cannot be removed

316You cannot perform this action on a closed project
321Company removed successfully but email is not sent