Forum Discussion
Rahul Suryawanshi
Feb 19, 2018Copper Contributor
SharePoint Online CSOM for creating Site Collection App Catalog
Hi All,
I know that there is PowerShell cmdlets to create and remove site collection app catalog. Question is are there CSOM APIs available to do the same?
- 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);
Rahul Suryawanshi
Feb 21, 2018Copper Contributor
VesaJuvonen - Any insight on this would be appreciated.
VesaJuvonen
Microsoft
Feb 26, 2018Hi,
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);