Replies: 1 comment
-
Use command |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get all the items in a simple list. The list exists. I use Powershell 7.
`
Parameters
$siteUrl = "https://bah"
$clientId = "6e********************6517e"
$clientSecret = "***83Hz0"
$listTitle = "MyTitle"
Connect-PnPOnline -Url $siteUrl -ClientId $clientId -ClientSecret $clientSecret
$lists = Get-PnPList -Identity $listTitle
$lists | Format-Table # OK!
$fields = Get-PnPField -List $listTitle
$fields | Format-Table # OK!
$items = Get-PnPListItem -List $listTitle
$Items # NO DATA!
Disconnect-PnPOnline`
The problem is that I cannot get any rows from Get-PnPListItem, but I can enumerate the lists, and enumerate the fields of the list in questions. But I can't get any data.
I've searched the web up and down, tried a lot of different approaches, but no use. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions