Hi all,
with the sample code below, is it possible to create site collection with custom template using csom?
For the template "< Select template later... >" under Custom tab, Is that the custom template code = "__SELECTLATER"?
If not, may I know what is the custom template code?
I get an error "The specified template is not available for sites on this tenant."
Any help?
var tenant = new Tenant(context);
var properties = new SiteCreationProperties()
{
Url = "https://<TENANT>.sharepoint.com/sites/site1",
Owner = "<USER>@<TENANT>.onmicrosoft.com",
Template = "__SELECTLATER",
StorageMaximumLevel = 1000,
UserCodeMaximumLevel = 300
};
tenant.CreateSite(properties);
context.Load(tenant);
context.ExecuteQuery();
Thanks