How to Integrate Notion with OneDrive
In this article
Yes, you can integrate Notion with OneDrive. The most straightforward way is to embed OneDrive files directly into your Notion pages using the built-in embed block, or link them via the OneDrive URL. This lets you view and open files without leaving Notion. You don't need any third-party apps for basic embedding. For deeper integration (like syncing a Notion database with an Excel file), you’ll need to use a third-party automation tool like Zapier or Make, but that requires a paid plan on those platforms. Here’s how to do the simple, free method first.
What You'll Need
- A Notion account (free or paid).
- A Microsoft account with OneDrive access (free or paid).
- Your OneDrive files accessible in a web browser.
- For advanced automation: a Zapier or Make account (free tier available).
Step-by-Step: Embedding OneDrive Files in Notion
- Open the Notion page where you want to add the file. Click anywhere on the page to place your cursor.
- Type
/embedand press Enter. This creates an embed block. Alternatively, click the+button that appears on the left when you hover over a new line, then choose Embed. - Copy the OneDrive file link: Go to OneDrive in your browser, find the file you want to embed, right-click it, and select Share > Copy Link. Make sure the link is set to “Anyone with the link can view” (or edit, if you prefer) – otherwise, the embed won’t work for others.
- Paste the link into the embed block’s URL field in Notion, then click Embed link.
- Adjust the embed size if needed. You can drag the corners of the embedded preview to make it larger or smaller.
- Click on the embedded file to open it. It will open in a new browser tab or in the Notion preview pane, depending on the file type. For Office documents (Word, Excel, PowerPoint), you’ll see a preview; for other files, you’ll see a download option.
If you want to attach a file (not embed it), you can also use the /file command or drag-and-drop a file from your computer, but that uploads a copy to Notion, not a live link. For a live link, use the embed method above.
Step-by-Step: Linking OneDrive Files as Text
If you just want a clickable link, you can do this:
- Copy the OneDrive share link as described above.
- In Notion, type
[to create a link, or highlight text and pressCtrl+K(Windows) orCmd+K(Mac). - Paste the link and click Save. This creates a text link that opens the file in a new tab.
Step-by-Step: Advanced Integration with Zapier (or Make)
If you want to automatically create Notion database entries from OneDrive files, or sync data, you’ll need a third-party automation tool. Here’s how with Zapier:
- Go to zapier.com and sign in (or create a free account).
- Click Create Zap.
- Choose OneDrive for Business (or OneDrive) as the trigger app. Select a trigger event, like “New File” or “New File in Folder”.
- Connect your Microsoft account and select the folder to watch.
- Choose Notion as the action app. Select an action event, like “Create Database Entry”.
- Connect your Notion account and select the database you want to add entries to.
- Map the fields: for example, map the file name to a “Name” property, and the file link to a “URL” property.
- Test the zap and turn it on. Now, whenever a new file is added to that OneDrive folder, a new entry will appear in your Notion database.
Common Mistakes
- Using a non-shareable link: If you copy the link from the OneDrive address bar instead of using the Share button, it may not work for others or may not embed properly. Always use the Share > Copy Link option.
- Setting the wrong permission: If the link is set to “Specific people”, others won’t be able to access it. Use “Anyone with the link” for public or team access.
- Embedding a folder instead of a file: Notion cannot embed a OneDrive folder; you can only embed individual files.
- Forgetting to paste the link into the embed block: Some users paste the link into the page as text, which just creates a link, not an embedded preview. Use the /embed command specifically.
Tips
- For better security, set the OneDrive link to “Anyone with the link can view” rather than “edit” if you only want people to see the file.
- If you embed an Excel file, you can use Notion’s database view to link to it, but you can’t edit the Excel file inside Notion. You’ll need to open it in Excel Online.
- Use the Notion “Link Preview” feature: if you paste a OneDrive link on its own line, Notion may automatically show a preview. If not, use /embed.
- For frequent use, create a Notion template with the embed block already set up.
Troubleshooting
If the embed doesn’t show a preview:
- Check that the link is shareable. Go to OneDrive, right-click the file, select Share, and ensure “Anyone with the link” is selected.
- Try copying the link again. Sometimes the link expires or gets truncated.
- If the file is an Office document, try opening it in the browser first, then copy the URL from the address bar of that opened document – but note that this may not work for all file types.
- If you’re using a corporate OneDrive (OneDrive for Business), your organization’s admin may restrict embedding. Check with your IT department.
If the embedded file opens but shows an error:
- Make sure you are signed into your Microsoft account in the browser you’re using to view the Notion page.
- Try opening the link directly in a new tab to see if the file itself is accessible.
If the Zapier integration isn’t working:
- Reconnect your OneDrive and Notion accounts in Zapier.
- Check that the trigger folder actually contains new files – some triggers only fire on new files, not on changes to existing ones.
- Look at the Zap history to see if the zap ran successfully. If it failed, read the error message – it often tells you exactly what’s wrong.
Frequently Asked Questions
Can I edit a OneDrive file directly in Notion?
No. Notion only displays a preview or link. To edit the file, you’ll need to open it in OneDrive (or the corresponding Office app) in a new tab.
Can I embed a OneDrive folder in Notion?
No, Notion only supports embedding individual files, not folders. You can link to a folder, but it won’t show a preview.
Does this work with OneDrive for Business?
Yes, the same embed method works, but your organization’s admin settings may block external sharing or embedding. If it doesn’t work, contact your IT admin.
Can I sync a Notion database with an Excel file on OneDrive?
Not natively. You can use Zapier or Make to create Notion entries from Excel rows, but it’s not a two-way sync. For true two-way sync, you’d need a dedicated integration tool like Unito, which may require a paid plan.
Is there a way to attach a OneDrive file to a Notion page without embedding?
Yes, you can use the /file command to upload a copy of the file from your computer to Notion. But that’s a static copy – it won’t update if the original changes.
Why does my embedded OneDrive file show a “Preview unavailable” message?
This usually happens for file types that OneDrive can’t preview in the embed (e.g., .zip, .exe). You can still click the link to open the file in a new tab.