Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Drive of | "user" or "group" or "site" or "drive" |
| OwnerRequired | The person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names. |
| Folder | The folder's id, or its path from the drive's root starting with /. Leave empty for the root. |
| File nameRequired | The file's name, extension included. Pick the file, then paste its base64 below. |
| File contentsRequired | Base64 of the file — {{ file("name").base64 }}. One call carries it whole, so the run's parse limit bounds it; Upload large file sends a bigger Storage file in parts. |
| Media type | text |
| If the name is taken | "replace" or "rename" or "fail" |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
driveOf | "user" or "group" or "site" or "drive", by default "user" |
owner | text |
folder | text |
name | texta file name, listed in `requires.files` |
contentBase64 | textits `{{ }}` must give a string |
contentType | text, by default "application/octet-stream" |
conflictBehavior | "replace" or "rename" or "fail", by default "replace" |
Output
| Field | Type |
|---|---|
idFile id | string |
webUrlLink in Microsoft 365 | string |
itemFile | object |
Sample output, and the expression for each field
- id"01NEW"
- item
- id"01NEW"
- webUrl"https://contoso.sharepoint.com/q1"
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": {
"conflictBehavior": "replace",
"connection": "<connection id>",
"contentBase64": "<file contents>",
"contentType": "application/octet-stream",
"driveOf": "user",
"folder": "",
"name": "<file name>",
"owner": "<owner>"
},
"label": "Upload file",
"type": "graph.uploadFile",
"version": 1
}