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
| Parameter | Description | Required |
|---|---|---|
| Credential | OneDrive account to use for monitoring | Yes |
| Folder URL | OneDrive folder to watch (leave empty for root) | No |
| Poll Interval | How often to check for changes (minutes, min 1) | Yes |
| Limit | Maximum 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
| Setting | Description |
|---|---|
| Starting point | Process all files or only from a specific date |
| Retry failed items | Automatically re-process items that failed (default: on) |
| No retry after node | Stop retrying items that passed a specific node |
| Reset trigger state | Clear all processing history and reprocess files |
Examples
Process OneDrive Uploads
Extract data from new PDF uploads:
[OneDrive Trigger] → [Data Extractor] → [Insert Rows]
- Set Folder URL to your intake folder
- Set Poll Interval to 5 minutes
- 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