How to retrieve the entire folder contents in Filenet 5.2?

2k views Asked by At

There are methods like get_Subfolders() and get_ContainedDocuments() available through the Folder interface in Filenet's Java API.

I've already tried using get_Containees(), but it returns an empty list (iterator has no next entry).

Is there any way to retrieve both, folders and documents without making two network calls? Are there any tricks to do that?

1

There are 1 answers

2
bajji On

Folder.get_Containees retrieves referentially contained objects (folders, documents, custom objects) in the folder.

Folder.get_ContainedDocuments method to retrieve all documents contained in the folder. 

ex:

String folderPath = "/DocFolder/MyDocs";
Folder myFolder = Factory.Folder.fetchInstance(os, folderPath, null);
DocumentSet myLoanDocs = myFolder.get_ContainedDocuments();