Skip to main content

OneDrive:Download File

Controlled node

Overview​

Download a selected OneDrive file for use in your workflow.

Download a selected OneDrive file into the project library’s temporary-files directory. The result is a library file object, ready for a matching file reader.

Inputs​

InputTypeDescription
runEventTriggers this operation.
sourceFile selectionConfigure this using the node’s OneDrive connection and file picker. The download uses the saved picker selection, not an arbitrary file object connected to this socket.

Properties​

SettingTypeDescription
connectionConnectionChoose an authenticated OneDrive connection in this project with access to the file.
fileListFile selectionBrowse for the file using the picker. This saves the selection used for the download.

Outputs​

OutputTypeDescription
outputDataDownloaded library file object with fields such as id, name, mimeType, size and dir. If the drive or file cannot be resolved, returns null. Other download failures can stop the run.
doneEventFires 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 OneDrive 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.

Project connections