Skip to main content


 

Symptoms


K2 for SharePoint ListView of Document Library. We have document libraries that contain documents that are inside of folders. When I use the Get Documents smartobject method, only the documents that aren't inside folders are listed in the listview.

Is there a way where I can have all documents outside and inside folders (all inside the document library) on the list?

A couple ideas were to somehow use SharePoint's document library view that doesn't show any folders but shows all the documents...this SharePoint view could be shown on the K2 listview?

Or, maybe call the "Get Folders" smartobject method, then call "Get Documents" smartobject method...and all the documents will be shown...?


 

Diagnoses


By default the View List for documents only shows the Documents in the Main library. Folders are not listed. This is by design.

 

Resolution

There is a Property on the SmartObject for the Document Library called Recursive. This needs to be set to true so it displays all document within folders on that document library.

Setting the recursive property to true showed all documents in the list.
 




 
Be the first to reply!

Reply