Forum Discussion
Link for creating new document
Hi!
I want to create a button, which will creating a new document and saved it in a library.
Please tell me if there is such an opportunity and what link to insert to create a new document?
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)
- RobElliottSilver Contributor
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) - SvenSieverdingBronze Contributor
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 folderms-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