Issue using Site designs

%3CLINGO-SUB%20id%3D%22lingo-sub-675824%22%20slang%3D%22en-US%22%3EIssue%20using%20Site%20designs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-675824%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20PS%20script%20to%20create%20and%20spotheme%2C%20spositescript%2C%20and%20spositedesign%2C%20which%20is%20pasted%20below.%26nbsp%3B%20I%20have%20run%20this%20in%20my%20dev%20site%20and%20my%20prod%20side.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20prod%20site%2C%20when%20i%20am%20on%20the%20SharePoint%20admin%20site%20and%20go%20to%20create%20a%20new%20site%2C%20under%20the%20team%20area%20i%20have%20a%20dropdown%20where%20i%20can%20see%20the%20new%20site%20design%3B%20however%2C%20when%20i%20go%20to%20the%20main%20landing%20site%20at%20%3CA%20href%3D%22https%3A%2F%2Fmysite.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmysite.sharepoint.com%3C%2FA%3E%2C%20when%20i%20click%20on%20create%20and%20choose%20teams%2C%20the%20drop%20down%20does%20not%20show%20and%20i%20am%20unable%20to%20select%20this%20site%20design.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20have%20further%20tested%20this%20using%20the%20base%20template%20of%2068%20(comms%20site)%20rather%20than%2064%20and%20the%20drop%20down%20is%20there%20with%20the%20ability%20create%20this%20as%20a%20comms%20site.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%3F%26nbsp%3B%20thanks%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2F%2F%2F%2F%2Fsnip%20code%3C%2FP%3E%3CP%3E%24adminSiteUrl%20%3D%20%22%3CA%20href%3D%22https%3A%2F%2Fmysite-admin.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmysite-admin.sharepoint.com%3C%2FA%3E%22%3CBR%20%2F%3E%24themeName%20%3D%20%22Theme%202%22%3CBR%20%2F%3EConnect-SPOService%20%24adminSiteUrl%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%24themepalette%20%3D%20%40%7B%3CBR%20%2F%3E%22themePrimary%22%20%3D%20%22%23005172%22%3B%3CBR%20%2F%3E%22themeLighterAlt%22%20%3D%20%22%23eff7f9%22%3B%3CBR%20%2F%3E%22themeLighter%22%20%3D%20%22%23c3dee9%22%3B%3CBR%20%2F%3E%22themeLight%22%20%3D%20%22%2395c3d5%22%3B%3CBR%20%2F%3E%22themeTertiary%22%20%3D%20%22%23448eab%22%3B%3CBR%20%2F%3E%22themeSecondary%22%20%3D%20%22%23106384%22%3B%3CBR%20%2F%3E%22themeDarkAlt%22%20%3D%20%22%23004a67%22%3B%3CBR%20%2F%3E%22themeDark%22%20%3D%20%22%23003f57%22%3B%3CBR%20%2F%3E%22themeDarker%22%20%3D%20%22%23002e40%22%3B%3CBR%20%2F%3E%22neutralLighterAlt%22%20%3D%20%22%23f8f8f8%22%3B%3CBR%20%2F%3E%22neutralLighter%22%20%3D%20%22%23f4f4f4%22%3B%3CBR%20%2F%3E%22neutralLight%22%20%3D%20%22%23eaeaea%22%3B%3CBR%20%2F%3E%22neutralQuaternaryAlt%22%20%3D%20%22%23dadada%22%3B%3CBR%20%2F%3E%22neutralQuaternary%22%20%3D%20%22%23d0d0d0%22%3B%3CBR%20%2F%3E%22neutralTertiaryAlt%22%20%3D%20%22%23c8c8c8%22%3B%3CBR%20%2F%3E%22neutralTertiary%22%20%3D%20%22%23cbcbcb%22%3B%3CBR%20%2F%3E%22neutralSecondary%22%20%3D%20%22%23979797%22%3B%3CBR%20%2F%3E%22neutralPrimaryAlt%22%20%3D%20%22%23666666%22%3B%3CBR%20%2F%3E%22neutralPrimary%22%20%3D%20%22%23515151%22%3B%3CBR%20%2F%3E%22neutralDark%22%20%3D%20%22%233e3e3e%22%3B%3CBR%20%2F%3E%22black%22%20%3D%20%22%232e2e2e%22%3B%3CBR%20%2F%3E%22white%22%20%3D%20%22%23ffffff%22%3B%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3EAdd-SPOTheme%20-Name%20%24themeName%20-Palette%20%24themepalette%20-IsInverted%3A%24false%3C%2FP%3E%3CP%3E%24site_script%20%3D%20'%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22%24schema%22%3A%20%22schema.json%22%2C%3CBR%20%2F%3E%22actions%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22createSPList%22%2C%3CBR%20%2F%3E%22listName%22%3A%20%22Customer%20Tracking%22%2C%3CBR%20%2F%3E%22templateType%22%3A%20100%2C%3CBR%20%2F%3E%22subactions%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22SetDescription%22%2C%3CBR%20%2F%3E%22description%22%3A%20%22List%20of%20Customers%20and%20Orders%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22addSPField%22%2C%3CBR%20%2F%3E%22fieldType%22%3A%20%22Text%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22Customer%20Name%22%2C%3CBR%20%2F%3E%22isRequired%22%3A%20false%2C%3CBR%20%2F%3E%22addToDefaultView%22%3A%20true%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22addSPField%22%2C%3CBR%20%2F%3E%22fieldType%22%3A%20%22Number%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22Requisition%20Total%22%2C%3CBR%20%2F%3E%22addToDefaultView%22%3A%20true%2C%3CBR%20%2F%3E%22isRequired%22%3A%20true%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22addSPField%22%2C%3CBR%20%2F%3E%22fieldType%22%3A%20%22User%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22Contact%22%2C%3CBR%20%2F%3E%22addToDefaultView%22%3A%20true%2C%3CBR%20%2F%3E%22isRequired%22%3A%20true%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22addSPField%22%2C%3CBR%20%2F%3E%22fieldType%22%3A%20%22Note%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22Meeting%20Notes%22%2C%3CBR%20%2F%3E%22isRequired%22%3A%20false%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22verb%22%3A%20%22applyTheme%22%2C%3CBR%20%2F%3E%22themeName%22%3A%20%22Theme%202%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22bindata%22%3A%20%7B%20%7D%2C%3CBR%20%2F%3E%22version%22%3A%201%3CBR%20%2F%3E%7D%E2%80%99%3C%2FP%3E%3CP%3E%24ScriptID%20%3D%20Add-SPOSiteScript%20%E2%80%93Title%20%E2%80%9CScript%202%E2%80%9D%20%E2%80%93Content%20%24site_script%3CBR%20%2F%3E%24ScriptID%3C%2FP%3E%3CP%3EAdd-SPOSiteDesign%20%E2%80%93Title%20%E2%80%9CSite%202%E2%80%9D%20%E2%80%93WebTemplate%2064%20%E2%80%93SiteScript%20%24ScriptID.ID%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2F%2F%2Fend%20code%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

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