Forum Discussion
Template SharePoint Library?
Hi WYellow,
Here, it seems the same subject as yours with a Microsoft answer: https://answers.microsoft.com/en-us/msoffice/forum/all/how-can-i-create-a-document-library-template-in/6aef9586-3bdd-4f65-a9e6-5e488b82b73e
The conclusion is: currently, no easy way - to create a Template by script or automation.
- https://pnp.github.io/powershell/: extract existing library as Template (XML) and import it to another site
- https://pnp.github.io/cli-microsoft365: script the configuration of your library
- Power Automate / Logic App: you can use REST API to create or use an existing library and apply all settings
Hoping this information will help you 🙂
lsittler Good conclusion, I found it helpful to pour through those resources in the effort to do the same thing as OP. I think your previous link to
https://answers.microsoft.com/en-us/msoffice/forum/all/how-can-i-create-a-document-library-template-in/6aef9586-3bdd-4f65-a9e6-5e488b82b73e
is not relevant to this thread as there is one response from a Microsoft Agent and they essentially answer a different question, which is "How do I create a document template to upload to my library?" as opposed to the question here which relates to creating an entire document library template.
I have not finished my attempt at making my own document library template so will update answer if/when I find the solution and steps, but for now, here are some useful links I've gathered:
https://www.sharepointdiary.com/2021/05/sharepoint-online-copy-columns-from-one-list-to-another-using-powershell.html
https://www.youtube.com/watch?v=78HS1Vzm2vc&ab_channel=KeaPointTechTips
https://laurakokkarinen.com/the-ultimate-guide-to-sharepoint-site-designs-and-site-scripts/