How to give a direct link to create a New document from a Content Type in a Library?

%3CLINGO-SUB%20id%3D%22lingo-sub-1553838%22%20slang%3D%22en-US%22%3EHow%20to%20give%20a%20direct%20link%20to%20create%20a%20New%20document%20from%20a%20Content%20Type%20in%20a%20Library%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1553838%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20have%20a%20bunch%20of%20report%20templates%20on%20the%20New%20button%20in%20a%20Document%20library.%3CBR%20%2F%3EWe%20need%20to%20help%20the%20users%20select%20the%20correct%20template%2C%20so%20I%20want%20to%20get%20a%20link%20for%20each%20report%20template.%3C%2FP%3E%3CP%3EAll%20works%20OK%2C%20using%20the%20link%20below%20-%20BUT%20we%20now%20have%20some%20macro%20driven%20dotm%20templates.%3C%2FP%3E%3CP%3E%3CA%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2F%3CTENANCYNAME%3E.sharepoint.com%2F%3Aw%3A%2Fr%2Fsites%2FsiteA%2FsiteB%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%257B912b9561-64ef-4447-a82b-732adbe789bb%257D%26amp%3Baction%3Deditnew%3C%2FTENANCYNAME%3E%3C%2FA%3E%3C%2FP%3E%3CP%3EThe%20Macro%20template%2C%20(wrapped%20in%20a%20content%20type)%20works%20perfectly%20from%20the%20new%20button%2C%20(and%20opens%20in%20MSWord).%3C%2FP%3E%3CP%3EBut%20I%20am%20struggling%20to%20get%20a%20link%20equivalent%20for%20selecting%20the%20item%20from%20the%20new%20button.%3C%2FP%3E%3CP%3ECan%20anyone%20help%3F%3CBR%20%2F%3EMany%20Thanks%3C%2FP%3E%3CP%3ERuth%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1553838%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Econtent%20type%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi,
I have a bunch of report templates on the New button in a Document library.
We need to help the users select the correct template, so I want to get a link for each report template.

All works OK, using the link below - BUT we now have some macro driven dotm templates.

https://<tenancyname>.sharepoint.com/:w:/r/sites/siteA/siteB/_layouts/15/Doc.aspx?sourcedoc=%7B912b9...

The Macro template, (wrapped in a content type) works perfectly from the new button, (and opens in MSWord).

But I am struggling to get a link equivalent for selecting the item from the new button.

Can anyone help?
Many Thanks

Ruth

7 Replies

Did you ever find a solution for that issue? I am trying the same it seems that it´s not possible.

Best wishes,

Markus

@Markules 
I logged a call with Microsoft support but did not get a satisfactory resolution for what we were trying a achieve sadly.

Their suggestion here might help you?

 

I know I have a call back scheduled for tomorrow with you, I found an Article that might help.
 
 
Still going to reach out tomorrow have a great rest of your evening and stay safe.

 

Kindly, 
Alexis 
Microsoft 

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-4b...

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 :) **

@RuthJ 

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.

@Markules 

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?

@RuthJ 

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.

@Markules 

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