Site designs failing to apply to SharePoint site Microsoft Office 365, Microsoft SharePoint, Microsoft SharePoint Online image 1

Today I tried to apply a site design to a SharePoint site using Power Automate, however this would just not work without any failure being reported.

ApplySiteDesign

Table of Contents

This is going to be a quick post. But hopefully this will help someone else spend too much time on this issue.

Normally the ApplySiteDesign endpoint will apply a site design to a SharePoint site however I found that when you have larger site scripts assigned to your site design then this might just silently fail. The limit is 30 actions in your site script, so this must be quite an easy problem to find.

So how do we make this work? Site Designs easily go past that 30 actions limit.

Site Design tasks

The answer is luckily very simple.

We just need to create a Site Design Task. This task will then be processed. There is a specific endpoint for creating site design tasks, AddSiteDesignTaskToCurrentWeb. This end point will create a task and then update your sites quite quickly. In my case within minutes my sites were updated.

AddSiteDesignTaskToCurrentWeb example
Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as a Principal Architect at HybrIT Services Ltd. You can contact me using contact@sharepains.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue Reading

%d bloggers like this: