Skip to content

Commit 410bb86

Browse files
KoenZomersVesaJuvonen
authored andcommitted
Added documentation on activateSPFeature (SharePoint#4444)
Added documentation on activateSPFeature as there are quite some misunderstandings around it not working for site scoped features due to lack of documentation. Trying to take that away with this update.
1 parent 8995837 commit 410bb86

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/declarative-customization/site-design-json-schema.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,28 @@ Use the **associateExtension** action to register a deployed SharePoint Framewor
856856
}
857857
```
858858

859+
## Activate a Feature
860+
861+
Use the **activateSPFeature** action to activate a web scoped feature.
862+
863+
> [!NOTE]
864+
> Site scoped features cannot be activated through Site Designs at this time.
865+
866+
#### JSON values
867+
868+
- **featureId** – The ID of the web scoped feature to activate.
869+
870+
#### Example
871+
872+
To enable the web scoped feature which allows for Events Lists to be created (feature ID 00bfea71-ec85-4903-972d-ebe475780106):
873+
874+
```json
875+
{
876+
"verb": "activateSPFeature",
877+
"featureId": "00bfea71-ec85-4903-972d-ebe475780106"
878+
}
879+
```
880+
859881
## Trigger a flow
860882

861883
Use the **triggerFlow** verb to kick off a custom flow.

0 commit comments

Comments
 (0)