Objective
It allows to search in the FOLDER_ITEM table to retrieve one specific child of one folder. It is possible to define which child of the folder to retrieve with the fields “isFirst” and “nextItem”. DST must be provided.
Parameters
Parameter | Description | Type |
library | eDOCS library | String |
user | User name | String |
password | User password | String |
dbSchema | Database schema. By default is set to “DOCSADM” if an empty string is passed. | String |
parentDocNumber | Folder document number. Only one document number is allowed. | String |
isFirst | If “true” the method retrieves the first object of the content folder list (if exists). | String |
nextItem | The System_ID of the next object of the content folder list. If “0” then it is the last object of the content folder list. Note: See the following examples about how to use isFirst and nextItem fields on this method. Isfirst (true), nextItem (0) the first child of the folder if only one child exists. This method has been designed to be used in combination with methods “UploadDocumentToFolder” and “UploadDocumentAsBinaryToFolder”. Review the documentation of these methods to properly define the children’s order in folders. | String |
client | Optional parameter for the client code | String |
project | Optional parameter for the project code | String |
Rest Invoke
- http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
- UriTemplate:
- “/GetFolderItem/?library={library}/{parentDocNumber}&user={user}&password={password}&dbSchema={dbSchema}/{isFirst}/{nextItem}&client={client}&project={project}”
- “/GetFolderItemDST/?library={library}/{parentDocNumber}&user={user}&dst={dst}&dbSchema={dbSchema}/{isFirst}/{nextItem}&client={client}&project={project}”
Example
http://localhost:8732/GSService/xml/GetFolderItem/?library=DMTESTLEGAL&parentDocNumber=5&user=admin&password=owc123&dbSchema=DOCSADM&isFirst=true&nextItem=1881
This method returns the System_ID (from FOLDER_ITEM table) of the specified child document (if it exists).
DST Example
http://localhost:8732/GSService/xml/GetFolderItemDST/?library=DMTESTLEGAL&parentDocNumber=5&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&dbSchema=DOCSADM&isFirst=true&nextItem=1881
Error
Detailed errors can be found in the error log. See Appendix D for more information about the edocs.log file.