powershell
powershell copied to clipboard
[BUG] Set-PnPBuiltInSiteTemplateSettings Template IDs are partly outdated
Reporting an Issue or Missing Feature
The BuiltIn Site Templates (Formerly Site Design) IDs are partly outdated
Expected behavior
I expect to call
Set-PnPBuiltInSiteTemplateSettings -Template "CrisisManagement" -IsHidden $false
and get a confirmation that the template is not hidden anymore. I expect this to work for all the other templates specified here: https://github.com/pnp/powershell/blob/9bbc9e82f8d1fa07a90d1c19b0e9615d26e4b7ea/src/Commands/Enums/BuiltInSiteTemplates.cs#L6
Actual behavior
When visiting https://go.microsoft.com/fwlink/?linkid=2169454 you find the templates and in their link URL you are provided GUID's that are apparently outdated too.
The same error happens for some of the other templates in the enum, for example "Showcase".
Also the "HealthCare" Template does not seem to exist anymore in SharePoint Online, but instead there is a Template called "Human resources" that is missing from the Enum.
A web debug session shows me that the real template ID for the "CrisisManagement" template is this one:
Steps to reproduce behavior
Connect to any communication site with PnP.Powershell and run the following command:
Set-PnPBuiltInSiteTemplateSettings -Template "CrisisManagement" -IsHidden $false
What is the version of the Cmdlet module you are running?
2.2.0
Which operating system/environment are you running PnP PowerShell on?
- [x] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [ ] Azure Functions
- [ ] Other : please specify