GetDocumentsByStakeholder

Description

This method can be used to get documents using stakeholder

Request

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner
StakeholderIdlongMandatoryNot RelevantSelected stakeholder's ID

Request XML

<GetDocumentsByStakeholder>
  <MethodParameters>
    <UserAuthentication>
      <UserName></UserName>
      <Password></Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <StakeholderId>-</StakeholderId>
    </input>
    <applicationName></applicationName>
  </MethodParameters>
</GetDocumentsByStakeholder>

Response

ParameterDescription
GetDocumentsByStakeholderOutputGetDocumentsByStakeholderOutput model

GetDocumentsByStakeholderOutput

ParameterTypeDescription
DocumentsList<DocumentModelForGetDocumentsByStakeholder>List of DocumentModelForGetDocumentsByStakeholder model objects
StakeholderIdlongstakeholder Id

Response - sample output

<GetDocumentsByStakeholder>
  <MethodParameters>
    <GetDocumentsByStakeholderOutput>
      <Documents attr0="DocumentModelForGetDocumentsByStakeholderArray" isNull="false">
        <DocumentModelForGetDocumentsByStakeholderArray0>
          <DocumentId></DocumentId>
          <FileName></FileName>
          <Title></Title>
          <Description isNull="true" />
          <UpdatedDate></UpdatedDate>
          <Url></Url>
          <OwnedById></OwnedById>
          <OwnedByName></OwnedByName>
          <ShowToStakeholder></ShowToStakeholder>
          <Status></Status>
          <PdfDocId></PdfDocId>
          <PdfDocPath></PdfDocPath>
          <ApplicationTag></ApplicationTag>
        </DocumentModelForGetDocumentsByStakeholderArray0>        
      </Documents>
      <StakeholderId></StakeholderId>
    </GetDocumentsByStakeholderOutput>
  </MethodParameters>
</GetDocumentsByStakeholder>

Exceptions

Error CodeDescription
110Input parameters contain null or invalid data
111plantId does not exist for your company or your license does not authorize you to access this plantId
138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
167You are not authorized to use this method
425Stakeholder Id is not valid (zero or negative)
426Stakeholder cannot be found for given stakeholder ID
428Stakeholder Id does not exist for your company or your license does not authorize you to access this Stakeholder Id