Forum Discussion
How to give a direct link to create a New document from a Content Type in a Library?
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.
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?
- MarkulesMar 16, 2021Copper Contributor
But the SourceDoc (ID) differs each time when I click at the New -> MyTemplate. It seems that it is a dynamic ID. So it´s not possible to put it in link URL.
- RuthJMar 16, 2021MCT
Sorry I cannot remember all the details. I went through so many iterations trying to resolve this and still did not get it fixed how the client wanted it, so I don't think I can help you.
This is one of the more in depth article links that Microsoft support sent me.
It might help you?
Set a custom template for a SharePoint library - Office Support (microsoft.com)
Best of luck
Ruth