Document Library template using modern Team Sites

%3CLINGO-SUB%20id%3D%22lingo-sub-65881%22%20slang%3D%22en-US%22%3EDocument%20Library%20template%20using%20modern%20Team%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-65881%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20anyone%20know%20if%20it%20is%20at%20all%20possible%20to%20create%20a%20template%20from%20a%20document%20library%20within%20the%20Modern%20Team%20sites%20%2C%20There%20is%20no%20option%20to%20create%20a%20template%20from%20within%20document%20library%20setting%20and%20trying%20with%20SP%20Designer%20it%20does%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EBrad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-65881%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-135069%22%20slang%3D%22en-US%22%3ERe%3A%20Document%20Library%20template%20using%20modern%20Team%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135069%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20see%20any%20documentation%20in%20how%20to%20provide%20users%20a%20%22Template%22%26nbsp%3Bin%20modern%20SharePoint%20lists%20with%20PnP%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20at%20creating%20a%20new%20list%20in%20a%20modern%20site%2C%20the%20option%20to%20choose%20a%20template%20is%20completely%20missing%20or%20am%20I%20wrong%3F%20This%20is%20why%26nbsp%3BBradly%20was%20not%20able%20to%20choose%20the%20created%20template%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMay%20it%20be%20possible%20to%20create%20a%20list%20from%20an%20Excel%20or%20something%20as%20a%20workaround%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66003%22%20slang%3D%22en-US%22%3ERe%3A%20Document%20Library%20template%20using%20modern%20Team%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66003%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20all%2C%3C%2FP%3E%3CP%3EPnP%20can%20be%20used%20by%20Developers%20or%20admin%2C%20but%20not%20by%20a%20basic%20site%20owner%20which%20can%26nbsp%3Bhave%20autonomy%20to%20adapt%20the%20site%20with%20his%20needs.%3C%2FP%3E%3CP%3EThe%26nbsp%3Bcase%20is%20classical%20in%20my%26nbsp%3Btenant%20with%26nbsp%3Bsite%20owner%20who%20are%20doing%20complex%20list%20with%20many%20columns%20and%20want%20to%20duplicate%20it%20per%20%22Year%22%20or%20%22Supplier%22%20or%20%22Customer%22%3C%2FP%3E%3CP%3ESo%20without%20that%20SaveasTemplate%20option%2C%20Microsoft%20transfered%20that%26nbsp%3Bjob%20from%20Site%20owner%20to%20SharePoint%20support%20team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%3A%20The%20list.SaveAsTemplate%20option%20exist%20in%20PowerShell%20script%20via%20CSOM%20nativaly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFab%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-65928%22%20slang%3D%22en-US%22%3ERe%3A%20Document%20Library%20template%20using%20modern%20Team%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-65928%22%20slang%3D%22en-US%22%3EYeah...that%20option%20is%20%22hidden%22%20in%20the%20modern%20document%20libraries%2C%20but%20you%20can%20grab%20the%20Url%20you%20need%20from%20a%20classic%20document%20library...indeed%20the%20page%20you%20have%20to%20use%20is%20_layouts%2F15%2Fsavetmpl.aspx%3FList%3D%3CLIST_ID%3E%20The%20List%20ID%20you%20can%20have%20from%20accessing%20the%20document%20library%20settings%20page.%20I%20tried%20this%20approach%20and%20I%20was%20able%20to%20save%20a%20document%20library%20as%20template%2C%20but%20when%20I%20wanted%20to%20use%20later%20for%20creating%20a%20new%20document%20library%20in%20the%20site%2C%20I%20could%20not%20use%20the%20template%20created.%3CBR%20%2F%3E%3CBR%20%2F%3EBy%20the%20way%2C%20if%20Microsoft%20has%20decided%20to%20hide%20this%20option%20is%20because%20you%20should%20look%20for%20other%20way%20to%20save%20a%20library%20as%20template...and%20to%20me%20it's%20clear%20that%20the%20way%20to%20go%20is%20by%20using%20the%20PnP%20stuff.%3C%2FLIST_ID%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

Would anyone know if it is at all possible to create a template from a document library within the Modern Team sites , There is no option to create a template from within document library setting and trying with SP Designer it does not work.

 

Thanks

Brad

4 Replies
Yeah...that option is "hidden" in the modern document libraries, but you can grab the Url you need from a classic document library...indeed the page you have to use is _layouts/15/savetmpl.aspx?List=<List_ID> The List ID you can have from accessing the document library settings page. I tried this approach and I was able to save a document library as template, but when I wanted to use later for creating a new document library in the site, I could not use the template created.

By the way, if Microsoft has decided to hide this option is because you should look for other way to save a library as template...and to me it's clear that the way to go is by using the PnP stuff.

Dear all,

PnP can be used by Developers or admin, but not by a basic site owner which can have autonomy to adapt the site with his needs.

The case is classical in my tenant with site owner who are doing complex list with many columns and want to duplicate it per "Year" or "Supplier" or "Customer"

So without that SaveasTemplate option, Microsoft transfered that job from Site owner to SharePoint support team.

 

PS: The list.SaveAsTemplate option exist in PowerShell script via CSOM nativaly.

 

Fab

Did you see any documentation in how to provide users a "Template" in modern SharePoint lists with PnP?

 

I think at creating a new list in a modern site, the option to choose a template is completely missing or am I wrong? This is why Bradly was not able to choose the created template?

 

May it be possible to create a list from an Excel or something as a workaround?

Using Sharepoint Online...trying to find this so I can deploy either a new default library or have a few templates to choose from so we can rollout annually and as needed. Any updates?