Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Is it possible to create site collection with custom template "__SELECTLATER" using CSOM?

$
0
0

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


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>