Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Update document description
    • Sign In

    • State Verified Answer
    • Replies 1 reply
    • Subscribers 65 subscribers
    • Views 1503 views
    • Users 0 members are here

    Update document description

    Mick Inkster
    Offline Mick Inkster over 5 years ago

    Is there a way to change the Document Description using a powershell cmdlet? I can update document attributes, change file names, even change folder descriptions, but I can't figure out how to update the document description.

    • Sign in to reply
    • Cancel

    Top Replies

    • Dan Williams
      Offline Dan Williams Thu, Aug 9 2018 9:48 AM +1 verified
      Does the example code snippet from help not work? ---------- EXAMPLE 1 ---------- #Get the documents in the given path and update them with the listed attributes. Also supports changing name and…
    • Dan Williams
      +1 Offline Dan Williams Thu, Aug 9 2018 9:48 AM

      Does the example code snippet from help not work?

          ----------  EXAMPLE 1  ----------
          
          #Get the documents in the given path and update them with the listed attributes. Also supports changing name and filename, but, of course, those must be unique in 
          a folder.
          $docs = Get-PWDocumentsBySearch -FolderPath "Lend Lease\Dotted PDFs"
          foreach ($doc in $docs)
          {
          $doc.Description = "Changed in PowerShell 2"
          $doc.Version = "R06"
          }
          Update-PWDocumentProperties -InputDocument $docs
          Get-PWDocumentsBySearch -FolderPath "Lend Lease\Dotted PDFs" | Foreach -MemberName Description
      

      I was able to make this work with PW 10.00.02.265, PWPS_DAB 1.5.15.0 and PS 5.1.16299.547.

      Answer Verified By: Mick Inkster 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject 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