Forum Discussion

RuthJ's avatar
Jul 29, 2020

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

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=%7B912b9561-64ef-4447-a82b-732adbe789bb%7D&action=editnew

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

8 Replies

  • Markules's avatar
    Markules
    Copper Contributor

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

    Best wishes,

    Markus

    • RuthJ's avatar
      RuthJ
      MCT

      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 πŸ™‚ **

      • Markules's avatar
        Markules
        Copper Contributor

        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.

    • RuthJ's avatar
      RuthJ
      MCT

      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