Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum CONNECTED project creation
    • Sign In

    • State Verified Answer
    • +2 person also asked this people also asked this
    • Replies 15 replies
    • Answers 2 answers
    • Subscribers 67 subscribers
    • Views 2220 views
    • Users 0 members are here

    CONNECTED project creation

    D.Widdifield
    Offline D.Widdifield over 2 years ago

    I am looking to both 'Enable ProjectWise Drive' and turn on 'Sync Work Area Participants' as part of our new CONNECTED project creation process. I am looking for Powershell options. Has anyone come up with a solution?

    Thanks

    Dave

    • Sign in to reply
    • Cancel

    Top Replies

    • Dave Brumbaugh
      Offline Dave Brumbaugh Wed, May 5 2021 4:36 PM +1 verified
      Does Set-PWWorkAreaConnectionUserSync not work for you? It's possible it doesn't as we are getting varying reports of success. It worked at the time I did this video: https://www.screencast.com/t/YoEtJg0yjO…
    • Dave Brumbaugh
      Offline Dave Brumbaugh Tue, Jun 15 2021 10:08 AM in reply to D.Widdifield +1
      Agree. Would be useful for you to file a ticket. Don't mention PowerShell, but just ask, "How do you recommend that we automate the process of enabling UserSync and Drive, non-interactively, in our newly…
    • D.Widdifield
      Offline D.Widdifield Tue, Jun 15 2021 11:50 AM in reply to Dave Brumbaugh +1
      Good idea. I will do this and keep you posted. d
    • Dave Brumbaugh
      +1 Offline Dave Brumbaugh Wed, May 5 2021 4:36 PM

      Does Set-PWWorkAreaConnectionUserSync not work for you? It's possible it doesn't as we are getting varying reports of success. It worked at the time I did this video: https://www.screencast.com/t/YoEtJg0yjO. Some of that stuff does need reworking.

      Answer Verified By: D.Widdifield 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • D.Widdifield
      0 Offline D.Widdifield Thu, Jun 3 2021 10:52 AM in reply to Dave Brumbaugh

      Hi Dave. I just reviewed this, along with the video and this does the trick. Thanks so much for posting this.

      What I have found is the Set-PWWorkAreaConnectionUserSync must be run after the Add-PWConnectedProject is run. A delay does not work, I need to run the script, get the CONNECTED project created, then run this UserSync after. Running it all in the same script does not work. 

      d

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Dave Brumbaugh
      0 Offline Dave Brumbaugh Thu, Jun 3 2021 3:33 PM in reply to D.Widdifield

      Correct. Connected project must exist to do anything.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • D.Widdifield
      0 Offline D.Widdifield Mon, Jun 14 2021 4:57 PM in reply to Dave Brumbaugh

      Hi Dave. I have more odd behaviour with this and wondered if you have seen the same. I have ProjectWise Drive installed so that when I create the connected project the ProjectWise Drive is enabled by default. When I run this usersync it typically fails. I then go to the project and when I first look at it the configuration of the connection the Participants are Not Synced, ProjectWise Drive is not enabled. I refresh the page and ProjectWise Drive will then show the green check mark. I rerun the UserSync and it works! I refresh the page and it now shows as synced, ProjectWise Drive has the green check mark.

      This is the message when running -verbose at the end of the process on one project. Based on this I know the UserSync didn't do anything.

      'VERBOSE: Response status code: OK
      VERBOSE: From ProjectWise Web Connections service:
      []'

      I go to the project, refresh the page, make sure Drive is checked off, rerun the usersync and I get this. And I know this works based on the data that comes in after the Web Connections service line.

      VERBOSE: From ProjectWise Web Connections service:
      [{"id":"dff4ad6472f17f936a5a95fdb807f052991c9b8..........etc etc etc

      This does not make any sense to me. 

      Any thoughts?

      dave

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Dave Brumbaugh
      0 Offline Dave Brumbaugh Mon, Jun 14 2021 5:15 PM in reply to D.Widdifield

      Those APIs are kind of in flux and I also see inconsistent behavior. Make sure you are using latest version so that you get the proper OIDC token.

      • 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