Activate SharePoint site features using CSOM and javascript

In order to activate a feature via the client side we simply have to know the GUID of the feature.

If this is a site scoped feature this is pretty straight forward.

The following can be run from a script editor webpart;

We can then use the GUID found with the next function

This is especially useful when running with a function that manages site creation.

One thought on “Activate SharePoint site features using CSOM and javascript”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.