List Files
AI-generatedSummary
Lists files and folders in SharePoint, either from a manually specified path or a SharePoint URL. With NTLM credentials, it lists items in the resolved folder and can use a supplied library name or detect one from the path; with other supported credential types, it lists the root drive’s children.
Inputs
- SharePoint credentials (required) — Credentials for the SharePoint API.
- List Input Mode — Choose Manual or From SharePoint URL; defaults to From SharePoint URL.
- SharePoint URL (required) — In URL mode, provide a URL to a folder or file page. The node derives the site path, library, and folder path; for a file URL, it lists the containing folder.
- Path — In Manual mode, provide the SharePoint folder path. Required for NTLM listing.
- Library Name — In Manual mode, optionally provide the library title. If omitted with NTLM credentials, the node attempts to detect it from the path.
- Web Path — Optional SharePoint web path used with a root Site URL in the credentials. In URL mode, the node derives the site path from the supplied URL.
Output shape
One n8n item containing a JSON object with items and count; NTLM results also include path, sitePath, and listTitle.
Each item has id, name, type, and lastModifiedDateTime. NTLM results also include path and downloadPath (null for folders); non-NTLM results include size, createdDateTime, webUrl, and mimeType instead. NTLM lists the resolved folder’s immediate items, while other credential types list the root drive’s children regardless of the supplied path. Results are capped at 200 items per request; the NTLM listing does not paginate.