I've run up on this error again. I'm not sure how to go about getting around it.
I have a field that is a Multiple lines text with Append Changes set. I'm trying to retrieve all the items. I've found how to do this in Sharepoint 2013 using powershell but the PNP way of doing it isn't working for me.
When I run:
$VersionData = '' foreach($version in $qaDatabaseItem.Versions) { $VersionData+= $version["Status_x0020_Comments"] } Write-Host $VersionDataI get the error:
An error occurred while enumerating through a collection: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested..How do I initialize versions?
David Jenkins