Link to create new documents in Office Online and OneDrive – WOPIFRAME

You can create hyperlinks to the create new document functionality in office online using the following URL structure and template type parameter:

Word:
https://atentant-my.sharepoint.com/personal/[user_folder]/_layouts/15/CreateNewDocument.aspx?SaveLocation=https://atentant-my.sharepoint.com/personal/[user_folder]/Documents&DefaultItemOpen=1&Source=https://atentant-my.sharepoint.com/personal/[user_folder]/Documents&TemplateType=1

 

Excel: Same with TemplateType=2

Powerpoint: Same with TemplateType=3

Onenote: Same with TemplateType=4

 

The folder/url doesnt have to be pointed at the users onedrive. it could be any folder on any site.

 

Took a while finding this. Leave  a comment if you found this useful!