Skip to main content

OneDrive Trigger

Starts workflow execution when files are added or modified in a OneDrive folder.

Overview

The OneDrive Trigger monitors a OneDrive folder and runs your workflow when new files appear. It works similarly to the Google Drive Trigger but for Microsoft OneDrive.

Use it to:

  • Process incoming documents from OneDrive
  • Automate file-based workflows with Microsoft storage
  • Monitor shared OneDrive folders for new uploads

Parameters

ParameterDescriptionRequired
CredentialOneDrive account to use for monitoringYes
Folder URLOneDrive folder to watch (leave empty for root)No
Poll IntervalHow often to check for changes (minutes, min 1)Yes
LimitMaximum files to process per trigger (1-100)Yes

Folder URL

The URL of the OneDrive folder to monitor. Leave empty to monitor the root folder of the connected account.

Poll Interval

The minimum poll interval is 1 minute. Default is 5 minutes.

Limit

Controls how many files are processed per trigger execution. Default is 5, maximum is 100.

Output

For each new file, the trigger outputs an item with file data:

{
"file": {
"type": "fileData",
"name": "Invoice-001.pdf",
"mimeType": "application/pdf",
"fileInfo": {
"type": "oneDrive",
"credentialId": "..."
}
}
}

Access file properties in expressions:

  • File object: {{$item.file}}
  • File name: {{$item.file.name}}
  • MIME type: {{$item.file.mimeType}}

Settings

SettingDescription
Starting pointProcess all files or only from a specific date
Retry failed itemsAutomatically re-process items that failed (default: on)
No retry after nodeStop retrying items that passed a specific node
Reset trigger stateClear all processing history and reprocess files

Examples

Process OneDrive Uploads

Extract data from new PDF uploads:

[OneDrive Trigger] → [Data Extractor] → [Insert Rows]
  1. Set Folder URL to your intake folder
  2. Set Poll Interval to 5 minutes
  3. Set Limit to 10

Filter and Process by Type

Only process specific file types:

[OneDrive Trigger] → [If (mimeType = "application/pdf")] → [Data Extractor]

Monitor Shared Folder

Watch a team OneDrive folder for new spreadsheets:

[OneDrive Trigger] → [Get Table] → [Filter] → [Export to CSV]

Authentication

This node requires a connected Microsoft account with OneDrive access. Configure credentials in your workspace settings.

Tips

  • Leave Folder URL empty to monitor the root OneDrive folder
  • Failed items are automatically retried with exponential backoff (immediate, 1h, 6h, 24h)
  • Use the Reset trigger state button to clear history and reprocess all files
  • Files are tracked by ID — renaming won't re-trigger the workflow
  • Adjust poll interval based on urgency of processing