Download File

onedrive.download
ActionFiles & storageconnection required

Calls the OneDrive API with the connection's credentials.

Download a file's bytes and emit them as the shared base64 file envelope, ready to wire into a storage upload node.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
OneDrive
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Files.ReadWrite delegated scope
Config it needs
tenant, drive_id
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
drive_id
The drive to act on. Leave blank for the connected user's own OneDrive (/me/drive). A SharePoint document library's drive id also works here.
stringNo———
item_id
The driveItem id, addressing it as /drives/{drive-id}/items/{item-id}. Takes precedence over item_path when both are set.
stringNo———
item_path
The item's path inside the drive, e.g. 'Reports/Q3.xlsx', addressing it as /drives/{drive-id}/root:/Reports/Q3.xlsx. Used when item_id is blank.
stringNo———
  • At least one of item_id, item_path must be set.

Output

One shape.

result

FieldTypeExample
file_content
The file, base64-encoded.
string—
content_encoding
stringbase64
filename
stringapp-main.zip
content_type
stringapplication/zip
size
Raw size in bytes (before base64).
number—
{
  "content_encoding": "base64",
  "content_type": "application/zip",
  "file_content": "",
  "filename": "app-main.zip",
  "size": 0
}

See Download File run in a workflow.

In a technical demo we add the OneDrive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.