Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. Adam
    3. Posts

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    A Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    Posts

    Recent Best Controversial
    • Maps in vector and PowerShell

      I'm trying to pass to the PowerShell script maps in vector. Unfortunately, instead of the expected array containig hashtable I get an array containing stings. Below I attach a sample configuration plan where you can see the problem.

      set @Groups = @(%(key1:val1,key2:val2),%(key1:val3,key2:val4));
      
      foreach %Group in @Groups
      {
          Log-Information %Group.key1;
          Log-Information %Group.key2;
      }
      
      Execute-PowerShell >>
      foreach ($Group in $Groups)
      {
          Write-host PowerShellLoop
          Write-host $Group
          Write-host "IsHastable: $($Group -is [Hashtable])"
      }
      >>;
      

      How to pass Groups variable so that PowerShell receives array containing hashtable?

      posted in Support
      A
      Adam
    • 1 / 1