SOLVED

Link for creating new document

Brass Contributor

Hi!
I want to create a button, which will creating a new document and saved it in a library. 

Screenshot_1388.png
Please tell me if there is such an opportunity and what link to insert to create a new document?

2 Replies
best response confirmed by Don Kirkham (MVP)
Solution

@Pavel48n0sh out-of-the-box this isn't possible as far as I know: SharePoint won't know what type of document you are creating or what it's name is.

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

 

 

Hi @Pavel48n0sh,

if you want to open the files in the client applications of Office, then you can use the Office URI Scheme
https://learn.microsoft.com/en-us/office/client-developer/office-uri-schemes 

This link for example will open word, select a template from the given url and will prompt the user to save it in the given document folder

ms-word:nft|u|https://tenant.sharepoint.com/templates/template.docx|s|https://tenant.sharepoint.com/sites/mysite/documents


But you cannot use that in a default modern UI button, since that only accepts "http://","https://" and "mailto:" protocols.



Best Regards,
Sven


 

1 best response

Accepted Solutions
best response confirmed by Don Kirkham (MVP)
Solution

@Pavel48n0sh out-of-the-box this isn't possible as far as I know: SharePoint won't know what type of document you are creating or what it's name is.

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

 

 

View solution in original post