Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum How do I extract "Doc_no_status" property from a document?
    • Sign In

    • State Not Answered
    • Replies 3 replies
    • Subscribers 65 subscribers
    • Views 161 views
    • Users 0 members are here
    • powershell
    • powershell_dab

    How do I extract "Doc_no_status" property from a document?

    Tomas Žukauskas
    Offline Tomas Žukauskas 27 days ago

    In PWE i see the "Doc_no_status" property on every single document:

    But in Powershel, when i try using Get-PWDocumentsBySearch (even with -GetAttributes parameter added), i do not see "Doc_no_status" property listed in the output.

    I also tried Get-PWFolders cmdlet, thinking that maybe "Doc_no_status" is actually a folder property, but no luck either.

    Please note, that i verified the associated folder's View via these lines:

    Write-Host 'Checking documents in' $folderPath
    
    $pwFolderView = Get-PWFolders -FolderPath $folderPath -Slow -JustOne | Select-Object -Property View
    
    write-host 'The associated view is: ' $pwFolderView 
    
    # Get Columns associated with the View assigned to the folder.
    $pwViewColumns = Export-PWViews -ViewNames $pwFolderView.View | Select-Object -Property ColumnName
    
    write-host 'The columns of the View are: ' $pwViewColumns
     
    And got the following output:
    Apparently, the "Doc_no_status" property does exist, albeit named as "qa_doc_no_status". So how do i extract its value then?

     

    • Sign in to reply
    • Cancel

    Top Replies

    • Brian Flaherty
      Offline Brian Flaherty Mon, Sep 11 2023 4:15 PM +1
      Where are you seeing the " Doc_no_status" for each document? Is it within the Attributes or More Attributes tabs? If so, then it is an Environment attribute. You can use something like the following to…
    Parents
    • Chris Andrew
      0 Offline Chris Andrew Wed, Sep 13 2023 2:15 AM
      Try Get-PWDocumentBySearchWithReturnColumns

      Chris Andrew
      Roads UK&I Digital Lead
      AECOM | EURI | Transportation | Roads

      Advanced notice of leave 26/08 to 03/09

      Regards

      Chris


      AECOM Roads UK&I Digital Engineering, Design & Solutions Lead | Sector Information Management Lead

      Associate Director – Digital

      OpenRoads Designer 10.12 | MicroStation 2023 | ProjectWise CE 10.3.4 | ContextCapture | ProjectWise PowerShell 2023 | ProjectWise WSG API | Generative Components | OpenBridge Designer 10.12

      Civil 3D 2023 | Dynamo | Navisworks Manage

      PowerShell | Visual Studio | Office 365 | Power Platform | Teams | SharePoint | Visio

      Speckle | BIMVision | Revizto | Solibri

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Chris Andrew
      0 Offline Chris Andrew Wed, Sep 13 2023 2:15 AM
      Try Get-PWDocumentBySearchWithReturnColumns

      Chris Andrew
      Roads UK&I Digital Lead
      AECOM | EURI | Transportation | Roads

      Advanced notice of leave 26/08 to 03/09

      Regards

      Chris


      AECOM Roads UK&I Digital Engineering, Design & Solutions Lead | Sector Information Management Lead

      Associate Director – Digital

      OpenRoads Designer 10.12 | MicroStation 2023 | ProjectWise CE 10.3.4 | ContextCapture | ProjectWise PowerShell 2023 | ProjectWise WSG API | Generative Components | OpenBridge Designer 10.12

      Civil 3D 2023 | Dynamo | Navisworks Manage

      PowerShell | Visual Studio | Office 365 | Power Platform | Teams | SharePoint | Visio

      Speckle | BIMVision | Revizto | Solibri

      • 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