Get the full names of all fields in a SharePoint list

 


PowerShell script that pulls all the field info of a SharePoint Online list. It's good for when you're scripting and don't know the names of all the fields.

Get-PnPListItem -Id 55 -List "M365 License Audit" -Fields $global:FieldsList | Select -ExpandProperty FieldValues | Format-List *