Azure Function to read list information

Nipuna Weerasinghe 1 Reputation point
2022-06-30T13:11:07.113+00:00

Hi All,

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?
Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,017 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,210 questions
{count} votes