Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Add-PWSavedSearch change requests
    • Sign In

    • State Not Answered
    • Replies 2 replies
    • Subscribers 65 subscribers
    • Views 300 views
    • Users 0 members are here

    Add-PWSavedSearch change requests

    Kevin van Haaren
    Offline Kevin van Haaren over 1 year ago

    Writing a script I can use to quickly add some stock saved searches to projects and the current Add-PWSavedSearch is a bit lacking for what we do and we're hoping it can be exanded a bit.

    1. -UpdatedAfter & -UpdatedBefore only accept date/times but you can build search using custom expressions like $RANGE_TODAY$ for files updated today.
      1. Would like either an -UpdatedRange or -UpdatedCustom that can use the range values, or a completely custom expression
    2. No options for searching on creation date/time
      1. Would like same options that -Updated has (including range/custom if that is added)
    3. Ability to create a search that searches on Status
      1. Specifically supporting the special statuses in the search form of 'Not Checked In', 'Not Checked Out', 'Not Exported', etc...

    Also, not really a new feature but I think is a bug: When I create a search without specifying the -Environment it automatically adds a criteria "Document where Environment is <none>". We don't just want to find documents where the Environment is <none>, we want documents no matter what environment they are assigned.

    • Sign in to reply
    • Cancel
    Parents
    • MWBSI
      0 MWBSI Fri, Apr 8 2022 5:38 PM

      We are considering the other requests.  As to the "bug-like" request,  we have now added the -AllEnvironments switch.  If you use in conjunction with the -Attributes and  -Environment switches, the saved search will span multiple environments.  If you do not use the -AllEnvironments switch, the search will only look for documents in the environment specified by the -Environment switch.  Regardless of whether you want to search you want to search for attribute values  on all environments or one particular environment (aka "this environment only" in the ProjectWise Explorer), you must specify an environment with the -Environment switch.

      Hope this is useful,

      Mark Weisman | Bentley Systems

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Fri, Apr 8 2022 8:43 PM in reply to MWBSI

      Thanks!

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Kevin van Haaren
      0 Offline Kevin van Haaren Fri, Apr 8 2022 8:43 PM in reply to MWBSI

      Thanks!

       

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

    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