user3195616
user3195616

Reputation: 305

How to see all available properties of Get-PnPListItem

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

Answers (2)

Bastien Mazeran
Bastien Mazeran

Reputation: 71

This worked for me: $list[0].FieldValues.Keys

Upvotes: 1

Tal Folkman
Tal Folkman

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

Related Questions