OneDrive:Upload File
Controlled node
Overview
Create a text, CSV or Word file in OneDrive.
Create a file from workflow data and upload it to OneDrive. Despite its name, this node takes content to turn into a file; it does not copy an existing library file or accept arbitrary binary uploads.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Triggers this operation. |
| data | Data | Content to write: text, CSV text, an array of row objects for CSV, or Markdown text for a Word document. |
| fileName | Text | Base name without an extension, such as weekly-report. The selected file type’s extension is added automatically. A connected value overrides the configured name. |
Properties
| Setting | Type | Description |
|---|---|---|
| connection | Connection | Select an authenticated OneDrive connection in this project with access to the destination. |
| folder | Folder | Choose the destination in the node’s folder picker. If unset, the drive’s root is used. |
| fileName | Text | Set the base name here if it is not supplied through the input. |
| fileType | Choice | Choose Text File (txt), CSV Table (csv) or Word Document (docx). Select the type explicitly before running. |
Outputs
| Output | Type | Description |
|---|---|---|
| output | Data | Boolean true when a file is uploaded, or false when no upload succeeds. This is not a file object or download URL. |
| done | Event | Fires when the node returns, including when it returns an error result. Check the data output before continuing. |
Content formats
- Text File: writes the supplied text. Other values are converted to text.
- CSV Table: accepts an array of objects and writes column headers, or uses an existing CSV string as supplied.
- Word Document: converts Markdown text into a DOCX document.
Uploading with an existing filename can replace that file; choose a unique name when you need to retain earlier output. Check that output is exactly true before treating the upload as successful. Some failures can stop the run; review the logs if done is not reached.
Example
Select the connection and destination, choose CSV Table, and set fileName to contacts. Connect a Data node with this array to data:
[
{ "name": "Alex", "email": "alex@example.com" },
{ "name": "Sam", "email": "sam@example.com" }
]
Trigger run from Start and inspect output on done. A successful run creates contacts.csv in the selected destination.