Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Set-PWRichProjectResource Issues
    • Sign In

    • State Verified Answer
    • Replies 5 replies
    • Answers 1 answer
    • Subscribers 64 subscribers
    • Views 1516 views
    • Users 0 members are here

    Set-PWRichProjectResource Issues

    Peter Willmen
    Offline Peter Willmen over 5 years ago

    I am having problems when setting Project resources to 'Inherit' or 'None'

    The help file and examples seem to be incorrect as '-ResourceMemberName' is a required value

    #Example usage for setting a project's application resource to inherit.

    Set-PWRichProjectResource -FolderPath 'Projects' -ResourceType 'application' -Inherit

    #Example usage for setting a project's workspace profiles resource to none.

    Set-PWRichProjectResource -FolderPath 'Projects' -ResourceType 'workspaceprofile' -None

    Also I have found that the cmdlet will add multiple entries for the same value into the resources

    For example if I run the following command twice,  there will be 2 entries in the resource list for 'ENVIRONMENT 1'  -

    Set-PWRichProjectResource -folderpath $project -resourcetype environment -resourcemembername 'ENVIRONMENT 1'

    • Sign in to reply
    • Cancel

    Top Replies

    • Brian Flaherty
      Offline Brian Flaherty Fri, Feb 23 2018 8:38 AM +1 verified
      I have updated the cmdlet to resolve this issue. Should be available in a future release of the PWPS_DAB module.
    Parents
    • Brian Flaherty
      +1 Offline Brian Flaherty Fri, Feb 23 2018 8:38 AM

      I have updated the cmdlet to resolve this issue. Should be available in a future release of the PWPS_DAB module.

      Answer Verified By: Peter Willmen 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    Reply
    • Brian Flaherty
      +1 Offline Brian Flaherty Fri, Feb 23 2018 8:38 AM

      I have updated the cmdlet to resolve this issue. Should be available in a future release of the PWPS_DAB module.

      Answer Verified By: Peter Willmen 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    Children
    • Peter Willmen
      0 Offline Peter Willmen Fri, Feb 23 2018 9:40 AM in reply to Brian Flaherty

      Thanks Brian.

      One other thing I have found is that assigning the 'workflow' resources has no effect

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Feb 23 2018 10:29 AM in reply to Peter Willmen

      Hey Peter, I have tested setting the workflow and it appears to be working correctly.  However, I have overlooked a step in the validation process for the resource (erroring when it doesn't exist), so even if you enter an invalid workflow name, the process will still complete. Obviously, with no change. I will update the cmdlet to resolve this.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Feb 23 2018 10:50 AM in reply to Peter Willmen

      Once again, I have updated the cmdlet to resolve this issue. Should be available in a future release of the PWPS_DAB module.

      • Cancel
      • Vote Up 0 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