Issue using Site designs

Copper Contributor

Hey there,

 

I have created a PS script to create and spotheme, spositescript, and spositedesign, which is pasted below.  I have run this in my dev site and my prod side.

 

On the prod site, when i am on the SharePoint admin site and go to create a new site, under the team area i have a dropdown where i can see the new site design; however, when i go to the main landing site at https://mysite.sharepoint.com, when i click on create and choose teams, the drop down does not show and i am unable to select this site design.

 

i have further tested this using the base template of 68 (comms site) rather than 64 and the drop down is there with the ability create this as a comms site.  

 

Any thoughts?  thanks in advance.

 

/////snip code

$adminSiteUrl = "https://mysite-admin.sharepoint.com"
$themeName = "Theme 2"
Connect-SPOService $adminSiteUrl


$themepalette = @{
"themePrimary" = "#005172";
"themeLighterAlt" = "#eff7f9";
"themeLighter" = "#c3dee9";
"themeLight" = "#95c3d5";
"themeTertiary" = "#448eab";
"themeSecondary" = "#106384";
"themeDarkAlt" = "#004a67";
"themeDark" = "#003f57";
"themeDarker" = "#002e40";
"neutralLighterAlt" = "#f8f8f8";
"neutralLighter" = "#f4f4f4";
"neutralLight" = "#eaeaea";
"neutralQuaternaryAlt" = "#dadada";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt" = "#c8c8c8";
"neutralTertiary" = "#cbcbcb";
"neutralSecondary" = "#979797";
"neutralPrimaryAlt" = "#666666";
"neutralPrimary" = "#515151";
"neutralDark" = "#3e3e3e";
"black" = "#2e2e2e";
"white" = "#ffffff";
}

Add-SPOTheme -Name $themeName -Palette $themepalette -IsInverted:$false

$site_script = '
{
"$schema": "schema.json",
"actions": [
{
"verb": "createSPList",
"listName": "Customer Tracking",
"templateType": 100,
"subactions": [
{
"verb": "SetDescription",
"description": "List of Customers and Orders"
},
{
"verb": "addSPField",
"fieldType": "Text",
"displayName": "Customer Name",
"isRequired": false,
"addToDefaultView": true
},
{
"verb": "addSPField",
"fieldType": "Number",
"displayName": "Requisition Total",
"addToDefaultView": true,
"isRequired": true
},
{
"verb": "addSPField",
"fieldType": "User",
"displayName": "Contact",
"addToDefaultView": true,
"isRequired": true
},
{
"verb": "addSPField",
"fieldType": "Note",
"displayName": "Meeting Notes",
"isRequired": false
}
]
},
{
"verb": "applyTheme",
"themeName": "Theme 2"
}
],
"bindata": { },
"version": 1
}’

$ScriptID = Add-SPOSiteScript –Title “Script 2” –Content $site_script
$ScriptID

Add-SPOSiteDesign –Title “Site 2” –WebTemplate 64 –SiteScript $ScriptID.ID

 

///end code

0 Replies