Forum Discussion
How to give a direct link to create a New document from a Content Type in a Library?
Did you ever find a solution for that issue? I am trying the same it seems that it´s not possible.
Best wishes,
Markus
This might also help?
"What I really need is to find out how to create a link that jumps our users straight to create a doc from the content type,, so they don’t have to navigate to the library and work out which template they need."
For the non-macro ones we can use a link that looks like this:
https://xxxxxxxx.sharepoint.com/:w:/r/sites/XXXXXXX/_layouts/15/Doc.aspx?sourcedoc={03474314-531a-4b96-a0dd-f87b37567e2a}&action=editnew
But my problem was we also wanted to do that for a dotm template, but that was where I had endless calls with MS, but no resolution.
**Hope this saves you some time 🙂 **
- MarkulesMar 16, 2021Copper Contributor
I am just struggling with the link URL. I am note sure which Sourcedoc-ID you are using that it automatically creates a new document. Everytime I try an empty sourcedoc ID or some which doesn´t exists, an error occurs. So I am not sure how to tell the SharePoint that he has to create a sourcedoc ID on its own.
But thank you for the reply.- RuthJMar 16, 2021MCT
I think I had to go and find out the SourceDoc id for each of my templates.
(The Sourcedoc id is never empty as it points to the template we have uploaded to that library).
By adding each one as a new template in the library, and then from the New button, right click, open in new tab, or Inspect the link with F12 developer tools.
Hope that makes sense?