Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Saved searches (again!)
    • Sign In

    • State Not Answered
    • Replies 3 replies
    • Subscribers 67 subscribers
    • Views 1144 views
    • Users 0 members are here

    Saved searches (again!)

    Kirk Peterson
    Offline Kirk Peterson over 3 years ago

    hi everyone - We have a business unit that organizes saved searches in "subfolders", but it seems like the PW Saved Searches commands don't handle sub searches at all.  Am I missing something?

    thanks!
    Kirk

    • Sign in to reply
    • Cancel
    • Dan Williams
      0 Offline Dan Williams Thu, Jul 16 2020 12:32 PM

      We'll look into it.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Keith Meyers
      0 Offline Keith Meyers Tue, Jul 21 2020 4:21 PM

      No, they don't. That's primarily because the SDK functions don't really support managing the "Nested" searches very well. The folders are not even folders, they are simply searches that are parents to other searches.

      The only way to make this work relatively easily in PS is to uniquely name your Saved Searches. It is possible to build them in a hierarchy under the defined root, but to find them requires traversing the returned list to find the right one based on name. Creating a Saved Search with the name 'Query1\Query2\Search" will create the saved search, "Search" in the "Folder" "Query2" which is a "Sub-folder" of "Query1". It is not possible to Get a Saved Search in the same manner. The cmdlet are relative to the root location, i.e. Global or Project specific.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Richard Griffin
      0 Offline Richard Griffin Wed, Mar 10 2021 6:03 AM in reply to Dan Williams

      Hi Dan, and update on being able to use saved searches that are nested?

      Get-PWSavedSearches can find all the searches, but Get-PWDocumentsBySearch doesn't seem to be able to use those that are nested in a 'sub-search' hierarchy below Global.

      Side note: Can we get the SearchName switch included in the Get-PWDocumentsBySearchExtended and Get-PWDocumentsBySearchWithReturnColumns cmdlets?

      Thanks

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies