Azure Function to read list information
I have created an Azure function to read through SharePoint online sites and get list information. But I m getting the following error.
Get-PnPField : List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.
Used connection string is --> Connect-PnPOnline -Url $SiteURL -ClientId "xxxxx" -Thumbprint "317A4xxx" -Tenant "xxx.onmicrosoft.com"
But the same PnP code run on the local PC command prompt under my personal O365 account, it is working fine.
Can someone please help me on this?