Get-PnPListItem -Query or Where-Object

Viewed 21

I have 2 main questions here :

  • I want to use a query with the cmdlet Get-PnPlistItem should I use -Query or | Where-Object to do it?
  • What is wrong with this line? it returns me a null array when it shouldn't : $listItem = Get-PnPListItem -List "Templates" | Where-Object { $_.FieldValues["ID"] -eq 1 } The item with 1 as ID exists in my list
0 Answers
Related