OneDrive: Upload File
Controlled node
Overview
Uploads workflow data to Microsoft OneDrive as a text file, CSV table, or Word document. Use this node when a workflow needs to push generated text, tabular results, or markdown-based reports into a OneDrive folder.
The node uses the panel UI to select a OneDrive connection, destination folder, file name, and file type.
Connection Required
This node requires a configured OneDrive connection for the project. The connection selector only shows project connections with the ms-onedrive service.
Inputs
| Input | Type | Description | Default |
|---|---|---|---|
| Run | Event | Triggers the upload operation. | - |
| Data | Data | The content to upload. Text and DOCX uploads convert this value to text; CSV uploads accept a CSV string or structured tabular data. | - |
| File Name | Data | The name to give the uploaded file. The panel UI also stores this value on the node. | - |
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| File Type | Select | The file format to upload: txt (Text File), csv (CSV Table), or docx (Word Document). | txt |
| Connection Source | Connection | The OneDrive connection used for upload. | - |
| Destination Folder | Folder picker | The OneDrive folder to upload into. If omitted, the runtime uploads to the root folder. | root |
Outputs
| Output | Type | Description |
|---|---|---|
| Done | Event | Fires when the node has finished running. |
| Output | Data | Boolean success flag. Returns true when OneDrive upload succeeds, otherwise false. |
Runtime Behavior and Defaults
- Controlled Node: The node runs only when the Run event fires.
- Project Requirement: A runtime project ID is required so the node can use the project connection.
- Drive Resolution: The runtime asks OneDrive for available drives and uses the first drive returned.
- Folder Selection: The selected folder ID is read from connection data. If no folder is selected, the runtime uses
root. - Text Uploads: For
txt, Data is converted to text and uploaded with MIME typetext/plain. - CSV Uploads: For
csv, string data is uploaded directly. Non-string data is converted to CSV before upload. - DOCX Uploads: For
docx, Data is converted to text or markdown, rendered to DOCX, and uploaded as a Word document. - Error Handling: If no OneDrive drive is available or upload does not return a file, Output is
false.
Example Usage
Upload a Generated Report
- Use AI Write or Markdown Text to produce report content.
- Connect the generated content to Data.
- Set File Name to
"weekly-report". - In the panel UI, choose the OneDrive connection, destination folder, and
docxfile type. - Trigger Run from a Start node or another event.
The node uploads a Word document to OneDrive and outputs true when the upload succeeds.
tip
For files that should stay inside the Intellectible library instead of OneDrive, use Write Text File, Write CSV, or Write DOCX From Markdown.