Mar 23 2023 03:46 AM
Hello,
I'm looking to add a new Organization Template into the template list offered in SharePoint Online. I've captured the site script from an existing site, added it to the site scripts and added it to site designs.
PowerShell used:
Connect-PnPOnline -Url $site -Interactive
$SiteSchema = Get-PnPSiteScriptFromWeb -Url $site -Lists $relativeListUrls -IncludeBranding -IncludeLinksToExportedItems -IncludeRegionalSettings -IncludeSiteExternalSharingCapability -IncludeTheme
Connect-PnPOnline -Url $spo -Interactive
$SiteScript = Add-PnPSiteScript -Title $name -Description $description -Content $SiteSchema
Add-PnPSiteDesign -Title $name -Description $description -SiteScriptIds $SiteScript.Id -WebTemplate TeamSite
The template shows in the Organization Templates as expected but I am having a few issues, either I'm doing this wrong or I'm not understanding something.
When applying the template to a new site:
Working
Issue
Any advice, pointers or corrections to my thinking would be appreciated.
Thanks.
Nov 21 2023 06:46 AM
Nov 28 2023 08:33 AM
@Matt_P_StandingSorry Matt - no joy. I didn't get this working.
Mar 21 2024 10:20 AM - edited Mar 21 2024 10:30 AM
I am having exactly the same problem.
Same things work, same issues (no list content, no branding applied).
How we can get additional input from Microsoft or the PnP community?
Mar 21 2024 10:29 AM
I wasn't able to get the templates to apply correctly and decided to take another approach. In the end I used a range of PnP Powershell commands to build each site from scratch, therefore emulating a template.