Forum Discussion
Margaret_D
Jun 28, 2024Copper Contributor
Save document library as a template option has disappeared
Hi I am the SharePoint administrator, and only a few week ago, I saved a document library as a template (which I have done many times). I went to do this today and the option has disappeared. The...
Jun 28, 2024
I would guess that the have moved to the new way of saving document library as templates using site scripts!
As the old way was made for classic SharePoint and probably has been deprecated:
Use this script to create templates
#Parameters
$AdminCenterURL = "https://Contoso-admin.sharepoint.com"
$ListURL = "https://Contoso.sharepoint.com/sites/supersecretsite/Secret"
$TemplateName = "Secret Library"
$TemplateDescription = "Document Library Template for Secrets"
$TemplateThumbnail = "https://Contoso.sharepoint.com/SiteAssets/Super-Secret-template.jpg"
#Connect to Admin Center
Connect-SPOService -url $AdminCenterURL
# Get the Template from the Library
$ListTemplate = Get-SPOSiteScriptFromList -ListUrl $ListURL
#Create a site script
$SiteScript = Add-SPOSiteScript -Title $TemplateName -Description $TemplateDescription -Content $ListTemplate
#Create a Site desing for the site script
Add-SPOListDesign -Title $TemplateName -Description $TemplateDescription -SiteScripts $SiteScript.Id -Thumbnail $TemplateThumbnail -ListColor pink
- Margaret_DJul 01, 2024Copper ContributorThanks for your reply Nicolas, unfortunately I don't use PowerShell!
I only save a library as a template a few weeks ago!- Jul 01, 2024
Fully understandable!
Unfortunately this is the currently only way for you to create Organizational Templates for Libraries. so if you want to use them on multiple sites, this is the way to do it
If it's on the same site, you can choose the option "From existing Library", but that's it