I have a search name that has the same name but in different projects, how do I tell the Get-PWDocumentsBySearch module to use a specific projects search, I have tried adding the -FolderPath property, but didn’t seem to help, the only way that I could get the module to work was to make the search name unique in my datasource. Any ideas?
$searchname = 'Project PIDs'$searchpath = ‘TESTING ONLY\SiteABC\H999992'$Documents = Get-PWDocumentsBySearch -FolderPath $searchpath -SearchName $searchname
Kind regards Gavin Chapmangavin.email@example.com
Working on a solution for this.
Answer Verified By: GChapman
Thanks Brian, your recent PWPS_DAB update that contained the fix to allow the adding of the project path did the trick.Get-PWDocumentsBySearch -SearchName "Rich Project From PowerShell\Project 02\PDF Search made by PowerShell"
I do however have one more issue, sometimes we group searches by having them in a 'SearchFolder', and adding this subfolder in the module SearchName property doesn't seem to return any results.Get-PWDocumentsBySearch -SearchName "Rich Project From PowerShell\Project 02\SearchFolder\PDF Search made by PowerShell"
Correct. That isn't supported yet. Looking into it.