Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[BUG] AppManager:GetAvailable() returns NULL after V3.23.2007 when used in Azure Functions #2813

Open
matsla opened this issue Nov 30, 2020 · 1 comment

Comments

@matsla
Copy link

matsla commented Nov 30, 2020

For some reason the function to return available apps from tenant return NULL when used in an azure function after V 3.23.2007. It works fine using a console application, so it seems to be an issue with async handling when used in an azure function. Using Fiddler the call to AppManager:GetAvailable request to api/web/tenantappcatalog/AvailableApps returns all apps but the function returns NULL.

We use this functionally a lot of customer customizations and we are not able to update PnP to laster version due to this issue.

[FunctionName("TriggerTest")]
public static async Task RunAsync([TimerTrigger("0 */2 * * * *")]TimerInfo myTimer, TraceWriter log)
{

  var authManager = new OfficeDevPnP.Core.AuthenticationManager();
  var ctx = authManager.GetSharePointOnlineAuthenticatedContextTenant(
   "https://xxxxx.sharepoint.com/sites/xxxxx",
   "xxxx",
   "yyyy");

  var appManager = new OfficeDevPnP.Core.ALM.AppManager(ctx);
  var apps = appManager.GetAvailable();

  // apps is NULL after V3.23.2007

}

Environment

[ X] Office 365 / SharePoint Online

@ghost
Copy link

ghost commented Nov 30, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Nov 30, 2020
@matsla matsla changed the title AppManager:GetAvailable() returns NULL after V3.23.2007 when used in Azure Functions [BUG] AppManager:GetAvailable() returns NULL after V3.23.2007 when used in Azure Functions Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant