Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum PWPS_WSG can somebody provide and example of how to apply the -WSGClientContext ?
    • Sign In

    • State Not Answered
    • +1 person also asked this people also asked this
    • Replies 3 replies
    • Subscribers 67 subscribers
    • Views 731 views
    • Users 0 members are here
    • PWPS

    PWPS_WSG can somebody provide and example of how to apply the -WSGClientContext ?

    Kevin
    Offline Kevin over 2 years ago

    Hi...

    I didn't find any examples.

    Would be great if someone could provide an example.

    Thanks for your patience,

    Kevin.

    • Sign in to reply
    • Cancel
    • AEC_PW_Interface
      0 Offline AEC_PW_Interface Fri, Oct 8 2021 11:35 PM

      Hello,

      Maybe its late for a reply but we did it like this :

      Get your context : $context = New-WSGClientContext -DisplayLabel $datasource -UserName $username -Password $SecurePassword -WsgURL "https://xyz.bentley.com/ws/"

      Use is, for example in Invoke-WSGWorkflowCommand : Invoke-WSGWorkflowCommand -DocumentGuid $doc[0].DocumentGUID -CommandLabel $command -WSGClientContext $context -ReturnDocument

      All the commands of the WSG take a context and the other arguments you can find with Get-Help command -full

      Hope it wasnt too late to help !

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Casper Roubos
      0 Offline Casper Roubos Thu, Jun 23 2022 4:48 PM in reply to AEC_PW_Interface

      Hi, What kind of account did you use? An Administrator account of a 'logical account' or a IMS-account? Do you need an other or special  account?

      I got everything working except I was missing credentials. Which is strange, because with -BentleyIMS I have sufficient rights.

      I hope you can help.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Casper Roubos
      0 Offline Casper Roubos Tue, Jun 28 2022 5:32 AM in reply to Casper Roubos

      Hi, I found out that currently it needs a 'logical account'.  It looks like that the 'logical username' is also 'case sensitive'.

      • 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