Microsoft OneDrive Trigger (With Drive ID)

Trigger for Microsoft OneDrive API with custom Drive ID.

Microsoft OneDrive Trigger (With Drive ID)

AI-generated

Summary

Poll Microsoft OneDrive for changes in files or folders based on specified event types and filters, triggering a workflow when matching events occur.

Inputs

  • Poll Times — Configure one or multiple times specifying how often the node should poll OneDrive for changes, with options ranging from every minute to custom cron expressions.
  • Trigger On (required) — Select the event to trigger on: new file created, existing file updated, new folder created, or existing folder updated.
  • Simplify — Choose whether to return a simplified version of the event data or the raw API response.
  • Watch Folder — For file or folder creation events, decide whether to watch the entire OneDrive or restrict to a specific folder.
  • Watch — For update events, specify if watching any file/folder, only files/folders inside a selected folder, or a specific file or folder.
  • File (required) — When watching a specific file for updates, provide the file by OneDrive URL or ID.
  • Folder (required) — When restricting watch scope to a folder, provide the folder by OneDrive URL or ID.
  • Options — Additional options such as whether to watch nested folders (recursive) when watching inside a folder.

Output shape

a JSON array containing change event objects matching the configured criteria, each representing a file or folder created or updated on OneDrive.

Returned events include properties like id, creation and modification timestamps, name, web URL, size, path, and MIME type if simplified output is enabled. Pagination and delta tracking are internally handled to provide only new or updated items since the last poll. Returns null if no matching events are found.

Examples

Example 1: Trigger a workflow when any new file is created in the entire OneDrive every 5 minutes, returning simplified event data.

Set Poll Times to every 5 minutes via 'Every X' mode. Set Trigger On to 'File Created'. Disable 'Watch Folder' (false). Enable Simplify (true).

Example 2: Trigger on updates to a specific file by its OneDrive URL, polling hourly, returning raw response data.

Set Poll Times to every hour. Set Trigger On to 'File Updated'. Set Watch option to 'A Selected File' and specify the file URL. Disable Simplify (false).

Links

Discussion