Productivity

OneDrive

Connect OneDrive to a MeDo app: browse and search files, save notes and generated documents, move, copy, or delete items (deletes after confirmation), and share files or folders by link or with named people.

Updated 2026-10-11

OneDrive is a connector: it links a MeDo app to one Microsoft account, so the app can list and search that account's OneDrive, open file details, create folders and text files, save a generated Word, PowerPoint, Excel, or PDF file, download a file, move, rename, or copy items, move an item to the recycle bin after confirmation, and share a file or folder by link or with named people. The app works with the connected account's own OneDrive only.

What you can build

  • A private file browser. List a folder you choose, and show each file's details and link.
  • A report archive. Write notes or generate a report in the app and save it into a named folder, replacing last week's version when you mean to.
  • A client handoff board. Pick a file, share it with a client's email address, and see or revoke who has access.
  • A cleanup board. List a folder, then move or delete files only after each item is confirmed.

OneDrive fits when the owner already keeps the files in OneDrive and the app should add a focused view, a way to file new documents, or a controlled way to share them. It does not edit Word, Excel, or PowerPoint files in place and does not reach SharePoint sites, see Limits.

Build examples

Copy one of these into the prompt box. The first one is the smallest useful starting point and only reads data.

Use @OneDrive to build a private file browser, visible only to me after I sign in, that lists a folder I choose and shows each file's details and link.
Use @OneDrive to build a private report archive where I sign in, write weekly notes, and save them as a text file in a folder I name.
Use @OneDrive to build a private client handoff board where I sign in, pick a file, share it with a client's email, and review or revoke who has access.
Use @OneDrive to build a private cleanup board where I sign in, list a folder, and move or delete files only after I confirm each item.

The wording matters: say which folder the app should use and who may open the app. "Only me after I sign in" produces a different app from "a page that lists files".

Prepare and connect

You need the Microsoft account that owns the files. Personal Microsoft accounts and work or school accounts both work. No API key and no Microsoft app registration are involved.

  1. If you use a work or school account, your organization's administrator may have to approve the connection first. That is decided by your organization, not by MeDo.
  2. Open Skills & Connectors in the sidebar and search for OneDrive.
  3. Open the OneDrive card and click Connect.
  4. Sign in to the Microsoft account and approve the access MeDo asks for.
  5. The button changes to Connected. That is the success state; you do not need to copy anything back into the app.

If you start building before connecting, MeDo shows a OneDrive connection button under its reply. You can connect there instead. If no button appears, use the connector card described above.

Use it in your app

  • The app uses the owner's connected OneDrive, not each visitor's Microsoft account. Everyone who reaches a file view sees the same files. Keep file browsers, uploads, deletes, and sharing behind your app's own sign-in, and restrict them to the people who should have that access. A page titled "private" is not access control on its own.
  • Name the folder in the prompt. Use a path from the top of the drive, such as /Reports/2026, or let the app offer a folder picker. File and folder names can repeat in different folders; the app keeps each item's own ID.
  • Lists are pages. Each page holds up to 50 items, with a way to load more. Search covers file names and content, but a file created a few seconds ago may not show up in search yet; list its folder instead.
  • Generated documents are saved as real files. When the app creates a Word, PowerPoint, Excel, or PDF file, it saves the file to OneDrive. Saving again to the same folder and file name can replace the earlier version and keeps its existing links; the app only replaces a file when you ask it to. Plain notes are saved as text files of up to 64 KB: naming one .docx does not make it a Word document.
  • Downloads use a short-lived link. The link works for about an hour and needs no sign-in during that time, so the app should not store it or show it on a public page.
  • Deletes are confirmed first. The app names the item before moving it to the OneDrive recycle bin. You can restore it from the recycle bin in OneDrive.
  • Copies finish in the background. A copy may take a moment to appear in the target folder; refresh the folder to see it. If it still does not appear, the target folder probably already has an item with that name.
  • Sharing changes who can open your files. A sharing link opens the file for anyone who has the link, without signing in, so it is created only when you ask for one, as view-only or editable. Each file has only one link of each kind: asking again returns the same link, and removing it cuts off everyone who has it. Sharing with named people by email is the safer choice: they must sign in, and you can choose read or edit access and whether to send them an invitation email. The access list shows other people's email addresses and working links, so keep it behind sign-in. Revoking access asks for confirmation, and the app shows the updated access list afterwards.
  • App-owned data stays in the app. Labels, review status, and notes that are not OneDrive fields belong in your app's own tables, keyed to the real item.

Limits and troubleshooting

What you may expectWhat actually happens
Editing a Word, Excel, or PowerPoint file in placeNot available. The app can save a new version of a whole file.
SharePoint sites or other people's drivesNot available. The app works with the connected account's own OneDrive.
Sharing links limited to your organization, or protected by a passwordNot available. Share with named people instead.
A sharing link that expiresAvailable only on accounts that allow it. Personal accounts without a Microsoft 365 subscription refuse an expiry date; create the link without one.
Changing what an existing sharing link allowsRemove that link and create a new one. You can change a named person's access between read and edit.
Restoring from the recycle bin, permanent delete, or emptying the recycle binNot available in the app. Restore deleted items in OneDrive.
File versions, PDF conversion, or automatic updates when files changeNot available. Files are read when a page loads or refreshes.
Automatic retries on a failed writeNot performed. An unknown result is left unknown so the same file is not created, shared, or invited twice.

"Connection required" appears in the app. Ask the app owner to open the connector card and click Connect, then reload.

A work or school account cannot connect. Your organization may require an administrator to approve the connection first. Ask your IT administrator.

A sharing link cannot be created. Your organization may block links that anyone can open, or the request asked for an expiry date the account does not allow. Share with named people, or create the link without an expiry date.

A new file does not show up in search. Search can lag a few seconds behind. List the folder instead, then try the search again later.

A download link stopped working. Download links are short-lived. Request a new download rather than reusing an old link.

Someone still has access after you revoked it. Access granted on a parent folder is removed on that folder, not on the file. Open the access list to check what is left.

Visitors can see files when they should not. The connection is shared. Add sign-in and server-side restrictions to the app; see Managing access & roles.