Forum Discussion
Nick Sevens
Jan 02, 2019Copper Contributor
Graph created OneNote not recognized as "Site-Notebook"
When creating a new Office365 Group, the "Site Notebook" is not provisioned until the Notebook link is clicked in the left navigation of the associated SharePoint site. I'm trying to automate this p...
bratukha
Copper Contributor
Does anybody found a solution for that?
Matthias Habegger
Feb 26, 2020Copper Contributor
The Problem is that the Website-Feature "Site Notebook" is not activated.
As a Workaround, you could enable the WebSite-Feature Website with CSOM something like this:
SharePointOnlineCredentials onlineCredentials = new SharePointOnlineCredentials(serviceAccountUsername, serviceAccountPassword);
ClientContext ctx = new ClientContext(rootSiteWebUrl);
ctx.Credentials = onlineCredentials;
ctx.Load(ctx.Web, w => w.Features);
//Activates Feature SiteNotebook
ctx.Web.Features.Add(new Guid("f151bb39-7c3b-414f-bb36-6bf18872052f"), true, FeatureDefinitionScope.None);
await ctx.ExecuteQueryAsync();
- bratukhaMar 02, 2020Copper Contributor
Matthias HabeggerThank you for the tip! It worked perfectly!