Skip to content

Commit 1774a86

Browse files
committed
Fix for bug #3579
1 parent 996dc56 commit 1774a86

File tree

3 files changed

+124
-45
lines changed

3 files changed

+124
-45
lines changed

documentation/Set-PnPBuiltInSiteTemplateSettings.md

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,29 +70,40 @@ Shows by the default all the built-in SharePoint Online site templates, except t
7070
Id of the built-in site template to configure. You can hide all templates by specifying an empty ID of "00000000-0000-0000-0000-000000000000". Settings specified for a specific template will take precedence over the "all templates" setting. You can hide all templates and then selectively make specific templates visible. All site templates are displayed by default.
7171

7272
| Team site templates | Template ID | Internal name |
73-
| :------------------- | :------------------- | :------------------- |
74-
| Event planning | 9522236e-6802-4972-a10d-e98dc74b3344 | EventPlanning |
75-
| Project management | f0a3abf4-afe8-4409-b7f3-484113dee93e| ProjectManagement |
76-
| Training and courses | 695e52c9-8af7-4bd3-b7a5-46aca95e1c7e | TrainingAndCourses |
77-
| Training and development team | 64aaa31e-7a1e-4337-b646-0b700aa9a52c | TrainingAndDevelopmentTeam |
78-
| Team collaboration | 6b96e7b1-035f-430b-92ca-31511c51ca72 | TeamCollaboration |
79-
| Retail management | e4ec393e-da09-4816-b6b2-195393656edd | RetailManagement |
73+
| :------------------- | :------------------------- | :------------------- |
74+
| Event planning | 9522236e-6802-4972-a10d-e98dc74b3344 | EventPlanning |
75+
| Project management | f0a3abf4-afe8-4409-b7f3-484113dee93e | ProjectManagement |
76+
| Training and courses | 695e52c9-8af7-4bd3-b7a5-46aca95e1c7e | TrainingAndCourses |
77+
| Training and development team | 64aaa31e-7a1e-4337-b646-0b700aa9a52c | TrainingAndDevelopmentTeam |
78+
| Retail management | e4ec393e-da09-4816-b6b2-195393656edd | RetailManagement |
79+
| Employee onboarding team | af9037eb-09ef-4217-80fe-465d37511b33 | EmployeeOnboardingTeam |
80+
| Set up your home page | 33537eba-a7d6-4d76-96cc-ee1930bd3907 | SetUpYourHomePage |
81+
| Crisis communication team | fb513aef-c06f-4dc3-b08c-963a2d2360c1 | CrisisCommunicationTeam |
82+
| IT help desk | 71308406-f31d-445f-85c7-b31942d1508c | ITHelpDesk |
83+
| Contracts management | 2a7dd756-75f6-4f0f-a06a-a672939ea2a3 | ContractsManagement |
84+
| Accounts payable | 403ffe4e-12d4-41a2-8153-208069eaf2b8 | AccountsPayable |
85+
| Standard team | c8b3137a-ca4c-48a9-b356-a8e7987dd693 | StandardTeam |
8086

8187
<br>
8288

8389
| Communication site templates | Template ID | Internal name |
84-
| :------------------- | :------------------- | :------------------- |
85-
| Crisis management | 905bb0b4-01e8-4f55-b73c-f07f08aee3a4 | CrisisManagement |
86-
| Department | 73495f08-0140-499b-8927-dd26a546f26a | Department |
87-
| Leadership connection | cd4c26b2-b231-419a-8bb4-9b1d9b83aef6 | LeadershipConnection |
88-
| Learning central | b8ef3134-92a2-4c9d-bca6-c2f14e79fe98 | LearningCentral |
89-
| New employee onboarding | 2a23fa44-52b0-4814-baba-06fef1ab931e | NewEmployeeOnboarding |
90-
| Showcase | 89f21161-0892-497a-91cb-5783eeb1f5f2 | Showcase |
91-
| Healthcare | 5215c092-152f-4912-a12a-7e1efdcc6878 | Healthcare |
92-
| Store collaboration | 811ecf9a-b33f-44e6-81bd-da77729906dc | StoreCollaboration |
93-
| Volunteer center | b6e04a41-1535-4313-a856-6f3515d31999 | VolunteerCenter |
94-
| Topic | a30fef54-a4e5-4beb-a8b5-962c528d753a | Topic |
95-
| Blank | 665da395-e0f9-4c92-b35c-773d8c292f2d | Blank |
90+
| :-------------------------- | :------------------------- | :------------------- |
91+
| Crisis management | 951190b8-8541-4f8c-8e8a-10a17c466c94 | CrisisManagement |
92+
| Department | 73495f08-0140-499b-8927-dd26a546f26a | Department |
93+
| Leadership connection | cd4c26b2-b231-419a-8bb4-9b1d9b83aef6 | LeadershipConnection |
94+
| Learning central | b8ef3134-92a2-4c9d-bca6-c2f14e79fe98 | LearningCentral |
95+
| New employee onboarding | 2a23fa44-52b0-4814-baba-06fef1ab931e | NewEmployeeOnboarding |
96+
| Showcase | 6142d2a0-63a5-4ba0-aede-d9fefca2c767 | Showcase |
97+
| Store collaboration | 811ecf9a-b33f-44e6-81bd-da77729906dc | StoreCollaboration |
98+
| Volunteer center | 34a39504-194c-4605-87be-d48d00070c67 | VolunteerCenter |
99+
| Brand central | f2c6bb0c-9234-40c2-9ec3-ee86a70330fb | BrandCentral |
100+
| Standard communication | 96c933ac-3698-44c7-9f4a-5fd17d71af9e | StandardCommunication |
101+
| Event | 3d5ef50b-88a0-42a7-9fb2-8036009f6f42 | Event |
102+
| Human resources | c298ddc9-628d-48bf-b1e5-5939a1962fb1 | HumanResources |
103+
| Organization home | 30eebaf6-48ea-4af9-a564-a5c50297c826 | OrganizationHome |
104+
| Copilot Campaign | 94e24f52-dfaf-40e4-b629-df2c85570adc | CopilotCampaign |
105+
| Viva Campaign | da99c5d9-baad-4e81-81f6-03a061972d49 | VivaCampaign |
106+
| Blank | f6cc5403-0d63-442e-96c0-285923709ffc | Blank |
96107

97108
```yaml
98109
Type: Guid

src/Commands/Enums/BuiltInSiteTemplates.cs

Lines changed: 76 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public enum BuiltInSiteTemplates
88
/// <summary>
99
/// All templates 00000000-0000-0000-0000-000000000000
1010
/// </summary>
11-
All,
11+
All,
1212

1313
#region Teamsites
1414

@@ -33,21 +33,51 @@ public enum BuiltInSiteTemplates
3333
TrainingAndDevelopmentTeam,
3434

3535
/// <summary>
36-
/// Team collaboration 6b96e7b1-035f-430b-92ca-31511c51ca72
36+
/// Retail Management e4ec393e-da09-4816-b6b2-195393656edd
3737
/// </summary>
38-
TeamCollaboration,
38+
RetailManagement,
3939

4040
/// <summary>
41-
/// Retail Management e4ec393e-da09-4816-b6b2-195393656edd
41+
/// Employee onboarding team af9037eb-09ef-4217-80fe-465d37511b33
4242
/// </summary>
43-
RetailManagement,
43+
EmployeeOnboardingTeam,
44+
45+
/// <summary>
46+
/// Set up your home page 33537eba-a7d6-4d76-96cc-ee1930bd3907
47+
/// </summary>
48+
SetUpYourHomePage,
49+
50+
/// <summary>
51+
/// Crisis communication team fb513aef-c06f-4dc3-b08c-963a2d2360c1
52+
/// </summary>
53+
CrisisCommunicationTeam,
54+
55+
/// <summary>
56+
/// IT help desk 71308406-f31d-445f-85c7-b31942d1508c
57+
/// </summary>
58+
ITHelpDesk,
59+
60+
/// <summary>
61+
/// Contracts management 2a7dd756-75f6-4f0f-a06a-a672939ea2a3
62+
/// </summary>
63+
ContractsManagement,
64+
65+
/// <summary>
66+
/// Accounts payable 403ffe4e-12d4-41a2-8153-208069eaf2b8
67+
/// </summary>
68+
AccountsPayable,
69+
70+
/// <summary>
71+
/// Standard team c8b3137a-ca4c-48a9-b356-a8e7987dd693
72+
/// </summary>
73+
StandardTeam,
4474

4575
#endregion
4676

4777
#region Communication sites
4878

4979
/// <summary>
50-
/// Crisis management 905bb0b4-01e8-4f55-b73c-f07f08aee3a4
80+
/// Crisis management 951190b8-8541-4f8c-8e8a-10a17c466c94
5181
/// </summary>
5282
CrisisManagement,
5383

@@ -72,35 +102,62 @@ public enum BuiltInSiteTemplates
72102
NewEmployeeOnboarding,
73103

74104
/// <summary>
75-
/// Showcase 89f21161-0892-497a-91cb-5783eeb1f5f2
105+
/// Showcase 6142d2a0-63a5-4ba0-aede-d9fefca2c767
76106
/// </summary>
77107
Showcase,
78108

79-
/// <summary>
80-
/// Healthcare 5215c092-152f-4912-a12a-7e1efdcc6878
81-
/// </summary>
82-
Healthcare,
83-
84109
/// <summary>
85110
/// Store Collaboration 811ecf9a-b33f-44e6-81bd-da77729906dc
86111
/// </summary>
87112
StoreCollaboration,
88113

89114
/// <summary>
90-
/// Volunteer center b6e04a41-1535-4313-a856-6f3515d31999
115+
/// Volunteer center 34a39504-194c-4605-87be-d48d00070c67
91116
/// </summary>
92117
VolunteerCenter,
93-
118+
119+
/// <summary>
120+
/// Blank f6cc5403-0d63-442e-96c0-285923709ffc
121+
/// </summary>
122+
Blank,
123+
124+
/// <summary>
125+
/// Brand central f2c6bb0c-9234-40c2-9ec3-ee86a70330fb
126+
/// </summary>
127+
BrandCentral,
128+
129+
/// <summary>
130+
/// Standard communication 96c933ac-3698-44c7-9f4a-5fd17d71af9e
131+
/// </summary>
132+
StandardCommunication,
133+
134+
/// <summary>
135+
/// Event 3d5ef50b-88a0-42a7-9fb2-8036009f6f42
136+
/// </summary>
137+
Event,
138+
94139
/// <summary>
95-
/// Topic a30fef54-a4e5-4beb-a8b5-962c528d753a
140+
/// Human resources c298ddc9-628d-48bf-b1e5-5939a1962fb1
96141
/// </summary>
97-
Topic,
142+
HumanResources,
98143

99144
/// <summary>
100-
/// Blank 665da395-e0f9-4c92-b35c-773d8c292f2d
145+
/// Organization home 30eebaf6-48ea-4af9-a564-a5c50297c826
101146
/// </summary>
102-
Blank
147+
OrganizationHome,
148+
149+
#endregion
103150

151+
#region 0
152+
/// <summary>
153+
/// Copilot Campaign 94e24f52-dfaf-40e4-b629-df2c85570adc
154+
/// </summary>
155+
CopilotCampaign,
156+
157+
/// <summary>
158+
/// Viva Campaign da99c5d9-baad-4e81-81f6-03a061972d49
159+
/// </summary>
160+
VivaCampaign
104161
#endregion
105162
}
106-
}
163+
}

src/Commands/Model/SharePoint/BuiltInSiteTemplateSettings.cs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,30 @@ public class BuiltInSiteTemplateSettings
1919
{ new Guid("f0a3abf4-afe8-4409-b7f3-484113dee93e"), BuiltInSiteTemplates.ProjectManagement },
2020
{ new Guid("695e52c9-8af7-4bd3-b7a5-46aca95e1c7e"), BuiltInSiteTemplates.TrainingAndCourses },
2121
{ new Guid("64aaa31e-7a1e-4337-b646-0b700aa9a52c"), BuiltInSiteTemplates.TrainingAndDevelopmentTeam },
22-
{ new Guid("6b96e7b1-035f-430b-92ca-31511c51ca72"), BuiltInSiteTemplates.TeamCollaboration },
2322
{ new Guid("e4ec393e-da09-4816-b6b2-195393656edd"), BuiltInSiteTemplates.RetailManagement },
24-
{ new Guid("905bb0b4-01e8-4f55-b73c-f07f08aee3a4"), BuiltInSiteTemplates.CrisisManagement },
23+
{ new Guid("951190b8-8541-4f8c-8e8a-10a17c466c94"), BuiltInSiteTemplates.CrisisManagement },
2524
{ new Guid("73495f08-0140-499b-8927-dd26a546f26a"), BuiltInSiteTemplates.Department },
2625
{ new Guid("cd4c26b2-b231-419a-8bb4-9b1d9b83aef6"), BuiltInSiteTemplates.LeadershipConnection },
2726
{ new Guid("b8ef3134-92a2-4c9d-bca6-c2f14e79fe98"), BuiltInSiteTemplates.LearningCentral },
2827
{ new Guid("2a23fa44-52b0-4814-baba-06fef1ab931e"), BuiltInSiteTemplates.NewEmployeeOnboarding },
29-
{ new Guid("89f21161-0892-497a-91cb-5783eeb1f5f2"), BuiltInSiteTemplates.Showcase },
30-
{ new Guid("5215c092-152f-4912-a12a-7e1efdcc6878"), BuiltInSiteTemplates.Healthcare },
28+
{ new Guid("6142d2a0-63a5-4ba0-aede-d9fefca2c767"), BuiltInSiteTemplates.Showcase },
3129
{ new Guid("811ecf9a-b33f-44e6-81bd-da77729906dc"), BuiltInSiteTemplates.StoreCollaboration },
32-
{ new Guid("b6e04a41-1535-4313-a856-6f3515d31999"), BuiltInSiteTemplates.VolunteerCenter },
33-
{ new Guid("a30fef54-a4e5-4beb-a8b5-962c528d753a"), BuiltInSiteTemplates.Topic },
34-
{ new Guid("665da395-e0f9-4c92-b35c-773d8c292f2d"), BuiltInSiteTemplates.Blank }
30+
{ new Guid("34a39504-194c-4605-87be-d48d00070c67"), BuiltInSiteTemplates.VolunteerCenter },
31+
{ new Guid("f6cc5403-0d63-442e-96c0-285923709ffc"), BuiltInSiteTemplates.Blank },
32+
{ new Guid("af9037eb-09ef-4217-80fe-465d37511b33"), BuiltInSiteTemplates.EmployeeOnboardingTeam },
33+
{ new Guid("33537eba-a7d6-4d76-96cc-ee1930bd3907"), BuiltInSiteTemplates.SetUpYourHomePage },
34+
{ new Guid("fb513aef-c06f-4dc3-b08c-963a2d2360c1"), BuiltInSiteTemplates.CrisisCommunicationTeam },
35+
{ new Guid("71308406-f31d-445f-85c7-b31942d1508c"), BuiltInSiteTemplates.ITHelpDesk },
36+
{ new Guid("2a7dd756-75f6-4f0f-a06a-a672939ea2a3"), BuiltInSiteTemplates.ContractsManagement },
37+
{ new Guid("403ffe4e-12d4-41a2-8153-208069eaf2b8"), BuiltInSiteTemplates.AccountsPayable },
38+
{ new Guid("f2c6bb0c-9234-40c2-9ec3-ee86a70330fb"), BuiltInSiteTemplates.BrandCentral },
39+
{ new Guid("c8b3137a-ca4c-48a9-b356-a8e7987dd693"), BuiltInSiteTemplates.StandardTeam },
40+
{ new Guid("96c933ac-3698-44c7-9f4a-5fd17d71af9e"), BuiltInSiteTemplates.StandardCommunication },
41+
{ new Guid("3d5ef50b-88a0-42a7-9fb2-8036009f6f42"), BuiltInSiteTemplates.Event },
42+
{ new Guid("c298ddc9-628d-48bf-b1e5-5939a1962fb1"), BuiltInSiteTemplates.HumanResources },
43+
{ new Guid("30eebaf6-48ea-4af9-a564-a5c50297c826"), BuiltInSiteTemplates.OrganizationHome },
44+
{ new Guid("94e24f52-dfaf-40e4-b629-df2c85570adc"), BuiltInSiteTemplates.CopilotCampaign },
45+
{ new Guid("da99c5d9-baad-4e81-81f6-03a061972d49"), BuiltInSiteTemplates.VivaCampaign },
3546
};
3647

3748
/// <summary>

0 commit comments

Comments
 (0)