How to get the column values of the items in a Sharepoint online document library using Powershell PNP? If all the document would have been in the root folder in the library, this works great.
Connect-PnPOnline –Url https://<company>.sharepoint.com/sites/<Site> –Credentials (Get-Credential)
$Item = Get-PnPListItem -List "SampleList" -Fields "Id","TestColumn"
$Item.FieldValues.TestColumn
However, I need to query the items in a subfolder that exists in "SampleList". And that seems to be harder.
Accodring to the documentation I can use -FolderServerRelativeUrl,
Get-PnPListItem -FolderServerRelativeUrl "/sites/<Site>/Lists/SampleList/Folder1"
But it cannot find the parameter -FolderServerRelativeUrl....
Get-PnPFolderItem : A parameter cannot be found that matches parameter name 'FolderServerRelativeUrl'
Any ideas of other cmdlets I can use?