pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
211 stars 145 forks source link

AvailableApps Throws Error When Using `AppCatalogScope.Site` #445

Open DaleyKD opened 3 years ago

DaleyKD commented 3 years ago

https://github.com/pnp/pnpframework/blob/52fa3cf3e779e455a562f7f54a07f42584b757dc/src/lib/PnP.Framework/ALM/AppManager.cs#L655

The above line wants to use the following URL when trying to use AppCatalogScope.Site : /_api/web/sitecollectionappcatalog/AvailableApps

In REST, this returns:

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <m:code>-1, Microsoft.SharePoint.Client.ResourceNotFoundException</m:code>
    <m:message xml:lang="en-US">Cannot find resource for the request SP.RequestContext.current/web/sitecollectionappcatalog/.</m:message>
</m:error>

In code, this returns: image

DaleyKD commented 3 years ago

Is this a special list that has to pre-exist?

DaleyKD commented 3 years ago

Bump.

StevenDeRoover commented 1 year ago

Any update on this?