Contents
To enable the “Save Site As Template in SharePoint Online”, you should enable the custom script in SharePoint Admin Center by checking the below options:
- Allow users to run custom script on personal sites.
- Allow users to run custom script on self-service created sites.
Save a site as a template to the solutions gallery
- Navigate to the top-level site of your site collection.
- Click Settings, and then click Site Settings.
- In the Site Actions section, click Save site as a template.
- Specify a name to use for the template file in the File name box.
How to apply site template in XML format?
Applies a site template in XML format to the current web. Any resources like files that are referenced in the template will be retrieved from the folder as specified with the ResourceFolder parameter. Applies a site template in XML format to the current web.
Can you create a SharePoint site from a template?
So the new “ site designs and site scripts ” capability for creating SharePoint sites from a template is starting to become available in Office 365.
After a few years we introduced the Tenant Template which distinguishes itself from its ability to provision artifacts beyond the scope of SharePoint sites. A tenant template for instance allows you to provision a Microsoft Teams team, Azure AD users, Site Designs and Site Scripts, tenant scoped themes, etc.
This provides an alternative approach to using Microsoft’s Patterns and Practices (PnP) provisioning library and XML, which has been the way that most experienced implementers have been creating custom site templates in recent times.