ADO.NET Provider for Microsoft SharePoint

Build 26.0.9655

ListFilesFromFolder

Lists files from a folder in a SharePoint document library. Uses a folder-scoped CAML query via RenderListDataAsStream to avoid the List View Threshold, supporting libraries with more than 5,000 items.

Input

Name Type Required Description
LibraryName String True The name of the document library (e.g., 'Shared Documents'). Must match the library segment in FolderServerRelativePath.
FolderServerRelativePath String True Server-relative path of the target folder (e.g., '/sites/Site/Shared Documents/SubFolder').
Scope String False Optional. Recursive scope for the query. Accepted values: FilesOnly — show only files in the specified folder; Recursive — show all files in all subfolders. If not set, returns only the direct contents of the specified folder.

The allowed values are FilesOnly, Recursive.

The default value is FilesOnly.

Result Set Columns

Name Type Description
ID Int The unique identifier of the list item.
EncodedAbsUrl String The absolute URL of the file, encoded for use in HTTP requests.
FileSizeDisplay String The human-readable size of the file (e.g., '12 KB').
Modified Datetime The date and time the file was last modified.
FileDirRef String The server-relative path of the folder that contains the file.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655