Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Note:

  • This method is an upgraded version of GetDocumentsByPlantId - Obsolete method and includes more meta data.

  • GetDocumentsByPlantInput is a single Input parameter introduced in this method that encloses all existing input parameters of the old method apart from the applicationName, in a single place.

Description

This method returns a list of documents for a given plant in a company. The document list contains all the documents sent to the given plant. The user can provide the filtering criteria and choose whether to include sub folders in the results. 

Request

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
inputGetDocumentsByPlantInputMandatoryNot RelevantGetDocumentsByPlant input model
applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner


Request - sample input

GetDocumentsByPlantInput


ParameterTypeMandatory/OptionalDescription
PlantIdlongMandatoryId of the plant
IncludeSubFoldersboolMandatoryIndicates whether documents of the queried plant in child folders should be included


Response

TypeDescription
GetDocumentsByPlantOutputGetDocumentsByPlantOutput model

 

GetDocumentsByPlantOutput


ParameterTypeDescription
DocumentsList<Document>List of documents for the given plantId

 

Response - sample output

Exceptions

Error CodeDescription

110

Input parameters contain null or invalid data

111

plantId does not exist for your company

130

Input plantId is either zero or negative. Please enter a positive value for the id

138applicationName length has exceeded the maximum character limit allowed (10)
146The applicationName is not set
167You are not authorized to use this web method
  • No labels