Embed SharePoint/OneDrive document on external website

Iron Contributor

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-Sha...

 

The problem is that the URL generated from OneDrive or SharePoint is different from the blog posts. 

 

How it was:

 

New URL

 

So the workarounds aren't working anymore. Does anyone have another solution

Maurits Knoppert

7 Replies
I 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.
Scratch that, you want to render it on a page... the same thing should work no? Let me try it real fast with the embed.
Have you actually tried to embed the file using the embed code you get when using the Share option in Excel Online? I have just tried and it works
Yeah, 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.
Of all the easy obvious things to do..... lol... yeah this works :P.

Actually @Juan Carlos González Martín just tried in a inprivate session from another SharePoint site and no bueno, only works if you are logged into tenant not anon :P.