Project

General

Profile

Actions

Feature #17739

open

Embedding docs from Word in Microsoft 365 Cloud

Added by Laurie Hurson about 1 year ago. Updated about 1 year ago.

Status:
Testing Required
Priority name:
Normal
Assignee:
Category name:
-
Target version:
-
Start date:
2023-02-28
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi All,

As you may or may not know, CUNY has been transitioning all faculty, staff, and students to Microsoft Office 365 cloud. So instead of having Microsoft Office software, everyone now gets these tools and saves docs etc in the 365 cloud.

Someone in a training asked about embedding the Live cloud-hosted word docs into a commons site, similar to how Google docs works, so that when they update their Word doc the commons embed is also updated. This is different from how Word and the Commons works now, where faculty have to upload the static document.

Some examples of sharing links from a test cloud-hosted word doc:

https://cuny907-my.sharepoint.com/:w:/g/personal/laurie_hurson91_login_cuny_edu/EVX7t5bl5ghBlYt7ACvbWT4B1D7pj40Z0EC3MveWkMT8HA?e=0wjaf6

<iframe src="https://cuny907-my.sharepoint.com/personal/laurie_hurson91_login_cuny_edu/_layouts/15/Doc.aspx?sourcedoc={96b7fb55-e6e5-4108-958b-7b002bdb593e}&action=embedview" width="476px" height="288px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> document, powered by <a target="_blank" href="https://office.com/webapps">Office</a>.</iframe>


Files

Recording #19.mp4 (4.58 MB) Recording #19.mp4 Laurie Hurson, 2023-03-06 12:20 PM
Recording #20.mp4 (3.47 MB) Recording #20.mp4 Laurie Hurson, 2023-03-09 11:05 AM
2023-03-09_113532.png (40.7 KB) 2023-03-09_113532.png Raymond Hoh, 2023-03-09 02:57 PM
Actions #1

Updated by Boone Gorges about 1 year ago

  • Assignee set to Raymond Hoh
Actions #2

Updated by Raymond Hoh about 1 year ago

  • Status changed from New to Testing Required

Hi Laurie,

I've setup the OneDrive plugin on cdev.

To test:

1. Activate the "OneDrive" plugin on a site
2. Create a new post and add the "OneDrive" block
3. Copy the sharing link for your OneDrive file. Ensure the sharing link was created with the "Anyone with the link can view" option. See https://github.com/hwdsb/onedrive/wiki/Sharing-a-file-and-getting-the-link.
4. Paste the sharing link into the block. That should be it!

Let me know if that works for you.

One important thing to note is only Word, Excel, Powerpoint and Visio files can be directly embedded when using OneDrive from SharePoint / Microsoft 365. If embedding from a OneDrive Personal account, you can also embed audio, video and images.

Boone, it's also possible for a user to select a file from OneDrive directly from the block, but this requires setting up an Azure app. See https://github.com/hwdsb/onedrive/wiki/File-Picker-Set-Up. This will probably require some bureaucratic hurdles to jump through, so I think it's not imperative to set this up at this time.

Actions #3

Updated by Boone Gorges about 1 year ago

Boone, it's also possible for a user to select a file from OneDrive directly from the block, but this requires setting up an Azure app. See https://github.com/hwdsb/onedrive/wiki/File-Picker-Set-Up. This will probably require some bureaucratic hurdles to jump through, so I think it's not imperative to set this up at this time.

Thanks for this! I agree that we shouldn't pursue at the moment.

Actions #4

Updated by Laurie Hurson about 1 year ago

Thanks for this! Will test soon.

Actions #5

Updated by Laurie Hurson about 1 year ago

Hi Ray,

I am not sure what I am doing wrong but my Word file isn't visible when I share. See video attached.

This is the "anyone can view" link Word gave me, and it works when you open in a browser but not through the plugin block.

https://cuny907-my.sharepoint.com/:w:/g/personal/laurie_hurson91_login_cuny_edu/EVX7t5bl5ghBlYt7ACvbWT4B1D7pj40Z0EC3MveWkMT8HA?e=pLjhAS

Thanks for your help with this.

Actions #6

Updated by Raymond Hoh about 1 year ago

Hi Laurie,

I think the issue here is with the way the cuny907 SharePoint install has configured embedding to require users to sign in to their Microsoft 365 account. What happens when you login? Are you able to see the embedded Word document?

Actions #7

Updated by Laurie Hurson about 1 year ago

Hi Ray,

Test this again with the additional step of trying to log in and the Commons or onedrive does not seem to recognize the sign in. What i mean is that even once I have logged in, the block still displays "login" screen. See video or here on cdev: https://sitetest4.commons.gc.cuny.edu/2023/03/09/one-drive-test-2/

This isn't pressing, maybe something we can work toward figuring out for the Fall.

Actions #8

Updated by Raymond Hoh about 1 year ago

Hi Laurie,

I'm able to see your test embed. See attached screenshot.

I think the issue is due to how Firefox is blocking third-party cookies. Can you try either allowing third-party cookies temporarily in Firefox or adding a cookie exception for the cuny907-my.sharepoint.com domain?

In Firefox, you can add a cookie exception for a domain by:
1. Going to the address bar and navigating to about:preferences#privacy.
2. Scroll down to "Cookies and Site Data"
3. Click on the "Manage Exceptions" button
4. Add the cuny907-my.sharepoint.com domain and either press the "Allow for Session" or "Allow" button and save.
5. Next, reload the page to see if the embed is working.

You can also test by using another browser like Google Chrome or Microsoft Edge with third-party cookies allowed.

Actions

Also available in: Atom PDF