Forum Discussion
Scott Preston
Apr 04, 2018Iron Contributor
Save list as template on modern team site
Wonder if anyone can advise how I can create a list in a modern sharepoint team site from a template that I saved from a classic team site. I don't see any option from within powershell settings.
...
ellixoye
Apr 06, 2023Copper Contributor
You can enables the list template on modern site using PowerShell and SharePointOnlineManagementShell. I just tried the below now on my developer site.
#connect to your site online. Then supply login credential.
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
#enables the list template. To disable, run same command with 1 (ending)
Set-SPOSite "https://yourtenantURL/sites/yoursite" -DenyAddAndCustomizePages
#connect to your site online. Then supply login credential.
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
#enables the list template. To disable, run same command with 1 (ending)
Set-SPOSite "https://yourtenantURL/sites/yoursite" -DenyAddAndCustomizePages