Is Set-OctopusVariable not able to handle object arrays?
I’ve been able to pass DateTime PowerShell objects between steps, so I’m surprised object arrays won’t work.
I have two PowerShell steps. The first sets an octopus variable for an object array. The second attempts to read the array.
Set-OctopusVariable -name “myArray” -value $myArray
$myArray = $OctopusParameters[“Octopus.Action[STEP1].Output.myArray”]
Write-Host “myArray: $myArray”
Is there a way around this?