I have a document library list. I created folders in that list and uploaded some files to those sub folders. How to get all these files which are in sub-folders in that document library list using SPQuery?
相关问题
- Sharepoint multiple connections to a web parts
- Trouble with OR in Sharepoint CAML
- List Microsoft Sharepoint Sites with Microsoft Gra
- How to use VBA or Powershell to export lists from
- redirect using itemreceiver sharepoint
相关文章
- File Upload to SharePoint 2013 using REST API
- Passing file object to Web API from Javascript
- How can I iterate recursively though a sharepoint
- SharePoint, VirtualPathProviders and Application R
- Saving a document to SharePoint brings up “Web Fil
- SharePoint SOAP GetListItems VS jQuery - How to us
- Trying to upload files to subfolder in Sharepoint
- Sharepoint client GetFolderByServerRelativeUrl fol
If you want to query all folders and sub folders of a list or document library, you have to define extra query options. If you are working with the object model you have to set the ViewAttributes property of the SPQuery object as follows:
qry.ViewAttributes = "Scope='Recursive'";