WebsiteTemplates

Samuel Ochsenbein 21 Reputation points
2022-08-17T12:45:35.38+00:00

Hello,
i want to create a WebsiteTemplate for my ShaerPoint tenant, which creates a new Home Site and additional pages. Now i would like to design those additional pages beforehand, like the ones Microsoft gives us as example templates, how is the easiest way to do that? And do i need to do all the Page Creation steps with Power Automate or can i do it also all in PowerShell, i don`t find a lot of information about the website templates, on how they work.

It would be helpfull to see what stepts happen behind the scenes when i use one of the MS Templates, how you did it for your templates.

Thanks in advance for your help!

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Accepted answer
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-08-18T10:16:37.127+00:00

    Hi @Samuel Ochsenbein ,

    Creating a site template is actually the same process as creating a site design. After building the base site, create the required site scripts using JSON and possibly Azure services. Finally, the site template can be added to your SharePoint tenant via PowerShell. Generally speaking, we talk about website scripts, where there are many actions available, creating lists and libraries, setting website branding properties page layout, etc. We usually use PowerShell to add create site scripts to complete the website design. Whereas Power Automate flows are often used with site design to track the creation of a site, referenced in the site script of the site design.

    Some article references about site templates and site scripts:
    Get started creating site templates and site scripts
    Calling the PnP provisioning engine from a site script
    Calling Power Automate from a site script


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.