1
votes

I'm using the graph API to access the documents in one-drive and I want that the preview URL, generated by the endpoint should open the document directly in office 365 offline, instead of first opening it in online mode and then click on edit in word.

Is that possible?

Thanks in advance.

1

1 Answers

0
votes

The purpose of /preview is to open a document in a "viewer", not an editor (thus the name "preview").

If you want to open it in an editor, you can use the webUrl property of the item. Navigating to this property will open the document in it's associated editor.