1

There are 1 answers

0
acm On

Depending on the size of your Knowledge Directory, this process has some performance and practical considerations - but addressing your main point, you want to download all documents from your Knowledge Directory (KD).

Use the following:

Use the IDocumentManager interface to start, then call the createQuery(int folderId) method to get an instance of a query object.

You will be returned an IDocumentQuery object.

Keep in mind that the following defaults are set and will most likely need to be overrided in your case of getting all documents from the root folder:

Factory method to create a document query on a specified document folder. The created query parameters default to start row=0, maximum of 100 results, show unapproved documents, sort by Document ID and no filters.

Assuming you have a reasonably large KD, I would recommend setting your filters to return documents based on date, at first using a DateQueryFilter, this will allow you to have a more manageable batch of files and object IDs. Knowing that you're working with an IDocument object type you can call getDocument() from there.