Forum Discussion

Maurits Knoppert's avatar
Maurits Knoppert
Iron Contributor
Mar 26, 2018

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:

 

New URL

 

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

Maurits Knoppert

  • 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.
    • Deleted's avatar
      Deleted
      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.
      • Deleted's avatar
        Deleted
        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.

Resources