OneDrive
Files and folders in OneDrive or a SharePoint document library (Microsoft Graph, OAuth2).
OCNORA ships 10 typed OneDrive operations and 1 trigger. Each node has a schema-driven form, input and output tables beside its settings, and is pre-flighted by Workflow Health before your first real run.
Before you connect OneDrive
- Authentication
- OAuth 2.0
- Credential
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}{"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Files.ReadWrite delegated scope
- Connection test
- Available: the stored credential can be checked against the provider when you add it. This is not a record that a test was run or passed.
- Prerequisites
- The delegated token needs Files.Read (personal OneDrive) or Files.Read.All (OneDrive for Business) — Graph refuses a subscription created with a write-only scope. Publishing also needs MANTLE_APP_PUBLIC_BASE_URL set to an https URL Graph can reach and validate: it POSTs a validationToken there before it will create the subscription.
Prerequisites are taken from the connection notes in this provider’s node contracts; each node’s reference page says which apply to it.
What you can do with OneDrive
Operations, grouped by what they do to your data, plus 1 trigger that start a run.
Create and send 4
Read and search 4
Update 1
Delete and cancel 1
A sample OneDrive workflow
- 1File Changetrigger.onedrive_eventStart a run when anything changes in a OneDrive folder hierarchy.
- 2Download Fileonedrive.downloadDownload a file's bytes and emit them as the shared base64 file envelope, ready to wire into a storage upload node.
- 3Copy Itemonedrive.copyCopy a file or folder into another folder. Graph runs the copy asynchronously and answers 202, so the new item's id is not available on this step.
An outline built from this provider’s node contracts, not a recorded run. Each step’s output fields are available to the next in the field picker.
Every node below has a reference page: what it does, the connection it needs, its config fields with types, constraints and examples, and the shapes it emits.
Triggers 1
Operations 10
- Copy ItemCopy a file or folder into another folder. Graph runs the copy asynchronously and answers 202, so the new item's id is not available on this step.onedrive.copy
- Create FolderCreate a folder inside another folder, or in the drive root when no parent is given.onedrive.create_folder
- Create Sharing LinkCreate (or return the existing) sharing link for an item and emit the shareable URL.onedrive.create_link
- Delete ItemDelete a file or folder, sending it to the drive's recycle bin as Graph does.onedrive.delete
- Download FileDownload a file's bytes and emit them as the shared base64 file envelope, ready to wire into a storage upload node.onedrive.download
- Get ItemRead one file or folder's metadata, addressed by item_id or by item_path inside the drive.onedrive.get_item
- List Folder ChildrenList the files and folders directly inside a folder, following Graph paging up to max_results. With no item_id and no item_path, the drive root is listed.onedrive.list_children
- Move or Rename ItemMove an item into another folder, rename it, or both, by patching its parent reference and name.onedrive.move
- Search DriveSearch the whole drive for items whose name or content matches a free text query.onedrive.search
- Upload FileUpload a file to the drive. Files at or below 4 MiB use Graph's simple upload; larger ones use a resumable upload session automatically. Set item_id to replace an existing file's contents instead of creating one.onedrive.upload
OneDrive questions
- How does OCNORA authenticate with OneDrive?
- With a stored OAuth 2.0 credential, shaped {"client_id": "…", "client_secret": "…", "refresh_token": "…"} or {"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Files.ReadWrite delegated scope. A connection test can check it when you add it.
- What can I automate with OneDrive?
- 10 typed operations and 1 trigger, each with a reference page listing its config fields and the shapes it emits.
- What if the OneDrive operation I need is not listed?
- Where OneDrive has an HTTP API, call it from the HTTP node with the same credential, or describe the step to the AI builder, which asks our team for a typed node when one is missing.
- Are there templates that use OneDrive?
- Not yet. Start from a blank workflow, or describe the workflow to Build with AI.
- How are OneDrive calls controlled?
- Every call and every run step is audited, runs count against the execution budget, and Workflow Health pre-flights the workflow when you save it.
See your first OneDrive workflow run.
Book a technical demo. We add the connection, pick a template or describe the workflow to Build with AI, and Workflow Health checks it before it runs.