hi everyone - I am trying to use Add-PWSavedSearch to create a search with multiple "OR" tabs; can that command do that?
thanks!
Kirk
Not supported, yet. There's already so many options to that cmdlet that I haven't been able to figure out a way to support it cleanly. Maybe one day., I've had a few requests for it over the years.
Maybe a new cmdlet that takes the same options
Add-PWOrToSavedSearch -Name ExistingSavedSearch ...
Then you'd create a Saved search with the Regular Add-PWSaved search then update the search with multiple Add-PWOrToSavedSearch?
Seems to me a parameter with an object which defines the entire search would be the advanced option needed. Could be interesting designing that structure and would help if a separate switch in Add-PWSavedSearch (or another cmdlet) would just pipeline an object variable with all the specified parameters placed into that object. The object could then be modified to meet the need then submitted with its own parameterSet as the only option.
Bill
This is something we look at all the time too, would be a great feature to have as often a framework comes and wants new searches added to all it's projects and they have OR tabs in them and it is very time consuming to add them manually, scripted would be so much more efficient for our support team. So this is Motts putting their hand in the air saying yes please, us too!!
Well, for you, Andrea, I will try to move it up the list!