FlowmageDocs

Download file

BetaReads data

Downloads the contents of one file from OneDrive or SharePoint.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Drive of"user" or "group" or "site" or "drive"
OwnerRequiredThe person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names.
FileRequiredThe file's id, or its path from the drive's root starting with /. The run's parse limit bounds the size.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
driveOf"user" or "group" or "site" or "drive", by default "user"
ownertext
itemtext

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
Sample output, and the expression for each field
  • base64"JVBERg=="
  • contentType"application/pdf"
  • name"q1.pdf"
  • size4

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "driveOf": "user",
    "item": "<file>",
    "owner": "<owner>"
  },
  "label": "Download file",
  "type": "graph.downloadFile",
  "version": 1
}