You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
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.
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
The text was updated successfully, but these errors were encountered:
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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)
{
Environment
[ X] Office 365 / SharePoint Online
The text was updated successfully, but these errors were encountered: