Are you struggling to save a SharePoint Online list as a template just like I did recently? Then you are reading the right post.
Well, worry no more as this article will demonstrate the solution to simply get it fixed.
Usually when you go to your SharePoint list/library settings page, you can easily spot the “save list as a template” link. But if you check the SharePoint online – this is missing.
Now let’s get our good friend back. The reason behind this, is a feature which is disabled by default.
Log in to office.com using your admin credentials and head on to Admin Center –> SharePoint Admin Center –> Classic SharePoint Admin Center (Yes ! at this moment, you really need to go to back to classics, but don’t worry at all, it wont change anything).
Go to “Settings” from the left navigation and scroll down until you see the “Custom Script” section.
Under this section, enable both these features (Allow users to run custom script on personal sites | Allow users to run custom script on self-service created sites)
And hit that “OK” button at the bottom of the page to save the changes. This might take about 24 Hours to affect as it depends on the Office 365 maintenance job schedules.
Run the following PowerShell code to enable it in “Site Collection Level” – (this affects immediately)
##SharePoint Online Admin Center and Site Collection URLs $AdminCenterURL = "https://TenantNameGoesHere-admin.sharepoint.com/" $SiteURL="https://TenantNameGoesHere.sharepoint.com/sites/SiteNameGoesHere" ##Connecting to SPO Service Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential) ##Enable the feature Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
It will prompt you to provide your Office 365 SharePoint Admin credentials for the 3rd command.
Last line is for the real job !
That should immediately affect the target site collection.
Now if you head back to the list/library settings page, you will immediately notice the feature is back.
DISCLAIMER NOTE: This is an enthusiast post and is not sponsored by Microsoft or any other vendor. Please do not copy/duplicate the content of the post unless you are authorized by me to do so.