A few months ago a group of SharePoint MVPs gathered to film a new kind of reality TV show and remake a company's Intranet. You may have seen it - SharePoint Swoop! This is a story from behind the scenes,in which I got to make their work reusable with SharePoint Site Designs and Scripts. It was quite a thrill to be involved, even though I wasn't there in person! I'll start with the story, then dig into the details of Site Designs and Scripts.
SharePoint Swoop is a new kind of reality TV show. Makeover shows about physical things like fashion, homes, and restaurants have become hackneyed! It's time to make over our digital experiences, and SharePoint Swoop does just that. SharePoint MVPs Sue Hanley, Laura Rogers, and Ben Nualin met with customer stakeholders and set out to remake their Intranet in only three days. You can watch the series here (binge watching encouraged!)
With only three days, the team had to stay focused. A product development team volunteered their department site for a remake, but what about the other departments? Wouldn't it be nice if you could push a button and make sites for the other departments based on the same design? Well here it is:
Naturally the customer wanted to base the new Intranet on SharePoint's new modern sites. They wanted their department sites to be Communication sites that included a Hero web part at the top of the home page, initially without images loaded; below that they wanted news on the left and frequently needed links on the right. They also wanted to set up an About page, and a custom view of the Pages library to facilitate page management. The resulting site looks like this (before adding content):
When a user pushes the button, the Site Design runs and creates the site with the desired structure. Although Site Designs weren't yet released (even in preview), with the help of Sean Squires and Vesa Juvonen, it was all working before too long.
Site Designs have several advantages over previous site provisioning techniques, including:
Site scripts are JSON files that contain actions, which can set up almost anything you'd want in a new site:
If something is missing from this list, it's possible to trigger an Azure Function to do the work using a remote API such as Graph API or PnP PowerShell. This also allows IT shops to make a smooth transition from remote provisioning techniques like PnP PowerShell into Site Designs; portions of the provisioning process can be transitioned to Site Scripts over time.
By the way, Site Designs aren't just useful when sites are created. They can be applied and re-applied at any time using PowerShell or a REST API. And soon it will be possible to run them when sites are added to a Hub, so Hub-specific settings and content can be added to each site.
This article won't go into all the technical nitty-gritty; for that please refer to Building SharePoint Site Designs with Azure Functions. It provides a walk-through of the code, along with installation instructions (yes the code is freely available so you can use it on your Intranet too!)
You will learn:
Please check it out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.