Actions4
Download
AI-generatedSummary
Download a file from a specified folder within a SharePoint site's drive and output its metadata along with the binary content in the workflow.
Inputs
- Site (required) — Identify the SharePoint site either by selecting from a list of sites or by providing its ID.
- Drive (required) — Select the drive within the SharePoint site by listing available drives or specifying its ID.
- Folder — Specify the folder path containing the file, either from a list or by entering a path string. Defaults to root ('/').
- File (required) — Select the file to download by providing its path or its unique ID.
- Binary Property — Name of the binary property where the downloaded file will be written. Defaults to 'data'.
Output shape
A list of items, each containing the downloaded file's metadata in JSON and the binary file data under the specified binary property.
Each downloaded file returns an item paired with its input item index to maintain context. The binary data includes appropriate MIME type metadata inferred from the file extension or SharePoint metadata.
Examples
Example 1: Download a PDF report from a specific folder in a SharePoint drive
- Site selected from list or provided ID
- Drive selected from list or provided ID
- Folder path specified as /Documents/Reports
- File specified by path /Documents/Reports/report.pdf
- Binary Property set as 'data'
Output will include the file metadata and the binary contents in 'data'.