Site Templates or Site Designs are a way to apply additional functionality commonly across multiple sites. We can apply it during the site provisioning process or after the creation of a site. Site designs have now been renamed as Site Templates. There are out-of-the-box Site Templates that you can apply to sites and the creation of a custom site template/design that applies company branding, theme, etc is also possible.
Some of the Out of the Box Team and Communication site templates available are:
Team site templates
Training and courses
Training and development team
Communication site templates
New employee onboarding
Once you go to a communication site, you can view the Apply Site Template Option from Settings.
Clicking on it will open the window from which we can select a template. Same way, for a Team site, you can get another set of available templates
In case you want to add some specific functionality that needs to be replicated across sites, we can create Custom Site Templates/Designs as well. Laura has written a detailed article on the step-by-step process to create a Site Design here.
In case you want to get a list of the Custom Site Designs already deployed and available in the tenant we can use the cmdlet: Get-SPOSiteDesign
We can use Power Shell to later apply the site design to a site using the syntax
|Invoke-SPOSiteDesign -Identity <SiteDesignID> -WebUrl <WebURL>|
In this article, we will see how we can apply an Out of the Box and Custom Site Template/Design using Power Automate so that in case one does not have access to PowerShell, they can still get the job done by passing the SiteDesign ID to a Power Automate.
As the first step, we will create a Power Automate with the manual trigger and add two input options :
The Site URL where Site Template has to be applied
The Site Template ID that has to be used
Once we have the inputs, we will use it to trigger a Send an HTTP Request to SharePoint action where we will have the following inputs used in the action
varSiteURL input variable
Thus we have easily set up a simple flow that looks like below to apply the site template
Let’s trigger the flow manually by providing the inputs – Site URL and Site Template ID
Where I will provide a newly created communication site URL and the site template ID of a custom site design that I have created. I have retrieved its ID using the Get- SPOSiteDesign cmdlet.
Submit and Run the flow
The flow has run successfully and as part of the Site Design, it has applied the footer extension to the bottom of the Site.
Having a look at the site, we can see the applied footer as part of the site design
In case we need to check the details of the applied site design, we can run the below cmdlet to get the details of the applied design.
|Get-SPOSiteDesignRun -WebUrl <WebURL>|