Hello,
I'm trying to retrieve all the documents in a folder that have a version set to 0. When I call the cmdlet Get-IshFolderContent -IshSession $ishSession -IshFolder $folder it normally ignores all of these documents with version 0.
I tried the following code, but I get the error that the value "0" is invalid for the parameter.
foreach($folder in $allFolders){
$objects = Get-IshFolderContent -IshSession $ishSession -VersionFilter "0" -IshFolder $folder
$objects
}
Another approach I tried was to find all DocumentObjs that have their version set to 0; however, this returned no files.
$metadataFilter = Set-IshMetadataFilterField -IshSession $ishSession -Name "VERSION" -Level "Version" -FilterOperator "equal" -Value "0"
$files = Find-IshDocumentObj -IshSession $ishSession -IshTypeFilter ISHModule -MetadataFilter $metadataFilter
$files
Are there any other approaches I could try?
Thank you!