SharePoint Site templates are now replaced with Site designs
in Modern Sites. We can create custom site designs using some json script(s).
Site Design allows to create lists, create list views, apply theme, customize
navigation, create content types, create site columns and so on.
Click here to see JSON scheme reference for creating custom site design.
Endpoint to apply site design as a part of flow is as below.
_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.AddSiteDesignTaskToCurrentWeb
We must use “Send Http Request to SharePoint” action to make an API call to SharePoint.
SiteDesignId must be part if body, this is GUID of the
SharePoint site design you need to apply.
We can line up sequence of calls if we need to apply
multiple site designs to a single site.
You just need to pass the Apply Design task id as body to check status.
Comments
Post a Comment