MS OneDrive Business Trigger icon

MS OneDrive Business Trigger

Triggers when files or folders are created or updated in OneDrive Business

MS OneDrive Business Trigger

AI-generated

Summary

Watch for file and folder changes in a selected OneDrive or SharePoint location and emit an event

Inputs

  • event (required) — Trigger event to watch (file.created, file.updated, folder.created, folder.updated).
  • driveType — Type of drive to monitor: user, site, or sharedLink.
  • sharedLinkUrl — URL of the shared folder when driveType is sharedLink.
  • userId — User email or ID for User Drive; optional to use authenticated user.
  • siteId — SharePoint site ID for SharePoint Site Drive; required when driveType is site.
  • folderSelection — Method to select the folder to watch (Browse, Entire Drive (Root), By Folder ID).
  • watchFolder1 — Level 1 folder name or ID when using Browse selection.
  • watchFolder2 — Level 2 folder name or ID when using Browse selection.
  • watchFolder3 — Level 3 folder name or ID when using Browse selection.
  • watchFolder4 — Level 4 folder name or ID when using Browse selection.
  • watchFolder5 — Level 5 folder name or ID when using Browse selection.
  • watchFolderId (required) — The OneDrive item ID of the folder to watch when using By Folder ID selection.

Output shape

a single event record representing the changed item (file or folder) with metadata such as id, name, eTag, and lastModifiedDateTime

May be emitted repeatedly via delta polling; empty if no matching changes; includes optional fields depending on the event type.

Examples

Example 1: Monitor a user's OneDrive for newly created files and trigger a processing workflow.

Set Event to 'file.created', leave Drive Type as 'user' (auth user), select the folder to watch via Folder to Watch, and keep default levels blank.

Example 2: Watch a SharePoint site library for file updates and move them elsewhere.

Set Event to 'file.updated', Drive Type to 'site', provide Site ID, select the target folder, and optionally drill down with Level selections.

Example 3: Track changes in an externally shared folder using its sharing link.

Set Event to 'file.created' or 'file.updated', Drive Type to 'sharedLink', paste the sharing URL into Shared Folder URL, and leave other fields blank.

Links

Discussion