SharePoint File Downloader
Downloads files from SharePoint Online document libraries to a local folder using the Microsoft Graph API via PowerShell. Handles authentication, binary file download, and error states.
This script is included with FlowLibs Pro
The full PAD script and its setup notes unlock with a Pro or Team plan. Everything else on this page is free to read.
Provided as-is, without warranty of any kind. Review and test each pattern in a non-production environment before deploying it to live automations. See our Terms.
Problem this solves
Forum users struggle with binary data conversion required to go from SharePoint file content to a local file on disk.
Usage Notes
- 1.Drive ID is required — run Pattern 5 once to discover it.
- 2.Binary download via -OutFile handles the stream directly — no base64 needed.
- 3.App Registration needs Sites.Read.All or Files.Read.All with admin consent.
- 4.SharePoint paths use forward slashes relative to document library root.
Dependencies
- REST API POST Caller
- REST API GET Caller
- Folder Scanner