Microsoft OneDrive (With Drive ID)

Consume Microsoft OneDrive API with custom Drive ID

File → Download

AI-generated

Summary

Download a file from Microsoft OneDrive by specifying its File ID, retrieving the file content and storing it in a specified binary field.

Inputs

  • File ID (required) — The ID of the file to download from OneDrive.
  • Put Output File in Field (required) — The name of the output binary field where the downloaded file content will be stored.

Output shape

The operation returns the original input items with the downloaded file data added to the specified binary field, containing the file name, MIME type, and content as binary data.

The file ID must correspond to a file; if not, an error is thrown. The binary output preserves existing binary data on the item and appends the downloaded file under the specified binary field name. The operation returns the modified items array preserving input metadata.

Examples

Example 1: Download a file by its ID and store it in binary 'data' field

Set 'File ID' to the ID of the file to retrieve and 'Put Output File in Field' to 'data'. The node outputs the workflow items with the file content saved as binary data in field 'data'.

Links

Discussion