SharePoint:Download File
Controlled node
Overview
Download a selected SharePoint file for use in your workflow.
Download a selected SharePoint file into the project library’s temporary-files directory. The result is a library file object, ready for a matching file reader.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Triggers this operation. |
| source | File selection | Configure this using the node’s SharePoint connection and file picker. The download uses the saved picker selection, not an arbitrary file object connected to this socket. |
Properties
| Setting | Type | Description |
|---|---|---|
| connection | Connection | Choose an authenticated SharePoint connection in this project with access to the file. |
| fileList | File selection | Browse for the file using the picker. This saves the selection used for the download. |
Outputs
| Output | Type | Description |
|---|---|---|
| output | Data | Downloaded library file object with fields such as id, name, mimeType, size and dir. Some missing-selection or connection failures return an object with error. Other download failures can stop the run. |
| done | Event | Fires when the node returns, including when it returns an error result. Check the data output before continuing. |
Only the first selected file is downloaded. Select a single file for predictable behaviour. The returned id identifies the imported library file, not the original cloud file.
Check for a valid file result before passing it to a reader. Move files into another project library directory if you want to keep them organised.
Example
Select the SharePoint connection and a PDF in the picker. Connect Start to run. After checking the returned file, connect output to Read PDF’s file input and done to its run. Choose Read DOCX, Read XLSX or another reader instead when the file format differs.