Forum Discussion
Maurits Knoppert
Mar 26, 2018Iron Contributor
Embed SharePoint/OneDrive document on external website
There is an option to embed an excel file on a website. This works when yo are logged in in Office365.
There are a couple of blogpost about this and how you can tweak the embed URL to show an embed document anonymous on a website.
https://samuelmcneill.com/2017/11/02/how-to-publicly-embed-onedrive-for-business-documents/
https://support.office.com/en-us/article/Embed-your-Excel-workbook-on-your-web-page-or-blog-from-SharePoint-or-OneDrive-for-Business-7af74ce6-e8a0-48ac-ba3b-a1dd627b7773
The problem is that the URL generated from OneDrive or SharePoint is different from the blog posts.
How it was:
- https://blablab.sharepoint.com/_layouts/15/guestaccess.aspx?docid=17df8114e248d4c9f81c7eff06710be76&authkey=AdPC1GSrfhkCu0gwlSSDzhQ&e=9c19b1955d804e2c8bf08149d149a227&action=embedview
New URL
- https://blablabla.sharepoint.com/:x:/g/personal/mknoppert_scoh_nl/Ed40fZvbnv1LkOh3fHTFtMMBIhIr7iRShvUhfyilsjOu6w
So the workarounds aren't working anymore. Does anyone have another solution
Maurits Knoppert
7 Replies
- AnonymousI don't think it's the URL as much as it is the Default office render now rendering 270+ file types. Try slapping &download=1 to the end of the URL, this will cause it to work like a downloadable / linked file vs. a rendered file.
- AnonymousScratch that, you want to render it on a page... the same thing should work no? Let me try it real fast with the embed.
- AnonymousYeah, seems they have a way to detect embed's now and restrict it with new formatting. You can turn off the "Short" Url to cause the old URL's to go back to how they were. But not sure how long that fix will stay viable.