Reputation: 305
I am getting a bit confused with getting all properties of Get-PnPListItem command
If I do
$list = (Get-PnPListItem -List $folder -PageSize 500 -Connection $gcon ).FieldValues
and then
foreach($f in $list){ $f | Get-member }
it only shows few properties, like "Compare", "Count" etc, but if I start typing f.
in ISE it suggests a lot of properties, like "FileLeafRef", "File_x0020_Type" and much more.
So the question is - how do I get the list of all available properties of Get-PnPListItem output?
Thanks
Upvotes: 0
Views: 3291
Reputation: 2581
you can try this:
$Items = (Get-PnPListItem -List $folder -Fields $global:FieldsList -Connection $gcon).FieldValues
foreach($Item in $Items)
{
Write-Host $Item.Title
}
Upvotes: 0