Forum Discussion
Programmatically creation of Office 365 Groups
- Aug 25, 2017
You are one lazy.... ;)
Tenant tenant = new Tenant(clientContext);
var site = tenant.GetSitePropertiesByUrl(siteUrl, false);
clientContext.Load(site, s => s.Status);
site.Context.ExecuteQueryRetry();
var status = site.Status;
Active site is the next challenge...I need to further provision the site (create some lists, add additional non-O365group members etc.) I thought the best way would be tenant-wide deployed provider hosted app with AppInstalled handler that will do the stuff needed. Another approach is wait until site is ready in the same code where we provision group and that brings me to another question :) how you check if site is "Active" in C#. I know the PowerShell command for that but did not find any for C# CSOM any hint ?
Tomas
You are one lazy.... ;)
Tenant tenant = new Tenant(clientContext);
var site = tenant.GetSitePropertiesByUrl(siteUrl, false);
clientContext.Load(site, s => s.Status);
site.Context.ExecuteQueryRetry();
var status = site.Status;