Posts uit januari, 2016 weergeven

CSOM tenant API support on-premise

A while ago I tried out the CSOM tenant API on-premise with SharePoint 2013. I then thought that I wasn’t able to get it working.

Then “Vesku” published a new blog on this matter:

It appears that only a limited set of the tenant CSOM API is supported on-premise. For example, I tried to read the app catalog, but that does not work.

He writes:
All other methods of the Tenant object are not supported and will cause for exceptions due dependencies on site subscription, which typically does not exist in the on-premises deployment. Therefore, this fragment does not work:
# $coll = $tenant.GetAppInfoByName([string]::Empty) $tenant.Context.Load($coll) $tenant.Context.ExecuteQuery()
Resulting in the exception: Exception calling "Execu…