Office Online
2 TopicsOpening Sharepoint files in I-frame using WOPI
Hello All, We are integrating office online with our application to open Microsoft files. We are using a WOPI protocol for it. These are files hosted on SharePoint. For Share point files to open them with office online through our application(in an I-frame), we have to perform the following steps - 1.the control comes to WOPI https://wopi.readthedocs.io/projects/wopirest/en/latest/files/CheckFileInfo.html#checkfileinfo 2.we need to hit the https://docs.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0 to download the file 3. we read the file and return the file information from rest call. This all steps take time and little fragile. So does anyone knows if there is some way to redirect WOPI rest calls to get SharePoint files? Or is there another way to optimize these steps? Or am I doing it all wrong and there is any better way to achieve(opening SharePoint files in I-frame) the same?2.5KViews0likes1CommentOpen documents on mobile in native apps by default
When using SharePoint search or the Graph API to return documents, we get the following document url format: https://[tenantid].sharepoint.com/sites/[sitename]/_layouts/15/Doc.aspx?sourcedoc=[docguid]&file=[filename]&action=edit&mobileredirect=true&DefaultItemOpen=1 This url works great on desktop browsers. The document is opened in the corresponding Office Online app in edit mode. On mobile devices the document is also opened in the browser in an Office Online editor. On mobile however we would like to automatically have the document opened in the native mobile Office app. What is the correct way to do that?1.3KViews0likes0Comments