SharePoint Online: Save List as Template Missing? Here is how to enable it!
Problem: “Save List as Template” is missing in SharePoint Online modern sites!
Root Cause: We don’t get the “Save list as Template” link on the list settings page in sites with custom script disabled. To enable the save list as a template in SharePoint Online, we should enable the custom script for a site!
Solution:
Enable Custom Scripting at SharePoint Admin Center and Site Collection Levels!
How to Enable Custom Script in SharePoint Online?
To allow custom script in SharePoint Online, follow these steps:
- Sign in to Office 365 and go to the SharePoint Online Admin Center.
- Click on Settings from the left navigation >> Scroll down to “Custom Script” section
- Under Custom Script section, Set “Allow users to run custom script on personal site” and “Allow
users to run custom script on self-service created sites” options. - Click on “OK” to save your changes.
This enables custom scripts in SharePoint Online. However, this change may take up to 24 hours to reflect. To enable scripting on a particular site collection immediately, use this PowerShell script through SharePoint Online Management Shell.
Enable Custom Scripting at Site Collection Level:
Let’s use PowerShell to fix the save list as template missing in the SharePoint Online issue.
#Variables for Admin Center and Site Collection URL
$AdminCenterURL = "https://crescent-admin.sharepoint.com/"
$SiteURL="https://crescent.sharepoint.com/Sites/marketing"
#Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)
#Disable DenyAddAndCustomizePages Flag
Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
This fixes the save list as a template not available issue in SharePoint Online!
Instead of saving the list as a template and creating new list instances from it, You can also use How to Create a New List from an Existing List in SharePoint?
Update: The recent updates made to SharePoint Online disabled this functionality, even if the custom scripts are enabled. Alternatives?
- Use the “Create list from existing” Feature: How to Create a New List from Existing List in SharePoint Online?
- Use the PnP Provisioning Engine: How to Copy a List or Document Library in SharePoint Online using PnP PowerShell?
Great post. I was trying to force enable the custom script for the save list as template appears in the SPO communication site. However, I am receiving the below error message:
https://ibb.co/568YkWs
Could you please advise what might be the issue?
To resolve 403 Forbidden issue, Use this checklist: SharePoint Online: Fix “The remote server returned an error: (403) Forbidden.” Error in PowerShell
This is worked for me. saved lot of time