Forum Discussion
SharePoint Online CSOM for creating Site Collection App Catalog
- Feb 26, 2018
Hi,
you should be able to do that with following CSOM commands as long as you are using relatively new CSOM NuGet version. You will need to have owner privileges to the tenant app catalog site collection to make this call.
Web.TenantAppCatalog.SiteCollectionAppCatalogsSites.Add(this.Site.Url);
Hi,
you should be able to do that with following CSOM commands as long as you are using relatively new CSOM NuGet version. You will need to have owner privileges to the tenant app catalog site collection to make this call.
Web.TenantAppCatalog.SiteCollectionAppCatalogsSites.Add(this.Site.Url);
Hi,
i am facing similar problem, i need to create tenant app catalog site by code (CSOM for my case).
Your solution works if that site exists and adds particular existing site as an app catalog site.
Web.TenantAppCatalog.SiteCollectionAppCatalogsSites.Add(this.Site.Url);
But i need to create tenant app catalog site and i couldn't find any solution to do that by any api. Is there a solution for that?