Skip to main content

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

InputTypeDescriptionDefault
RunEventTriggers the upload operation.-
DataDataThe content to upload. Text and DOCX uploads convert this value to text; CSV uploads accept a CSV string or structured tabular data.-
File NameDataThe name to give the uploaded file. The panel UI also stores this value on the node.-

Properties

PropertyTypeDescriptionDefault
File TypeSelectThe file format to upload: txt (Text File), csv (CSV Table), or docx (Word Document).txt
Connection SourceConnectionThe OneDrive connection used for upload.-
Destination FolderFolder pickerThe OneDrive folder to upload into. If omitted, the runtime uploads to the root folder.root

Outputs

OutputTypeDescription
DoneEventFires when the node has finished running.
OutputDataBoolean 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 type text/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

  1. Use AI Write or Markdown Text to produce report content.
  2. Connect the generated content to Data.
  3. Set File Name to "weekly-report".
  4. In the panel UI, choose the OneDrive connection, destination folder, and docx file type.
  5. 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.