Hi,
Is there a way to save a variable from a Powershell script so I can use it in another step in my runbook?
So when I run my Powershell script I want to save an output variable to use in the next step of my runbook.
Is this possible?
I will quickly point out the most common mistake that people make when using this syntax (even after reading through the documentation thoroughly). When you are referencing your variable, the part within the inner most square brackets [Set Octopus Variable] is the step name where you set the variable originally and it doesn’t require quotes.
Hi @dane.falvo,
Thanks for the feedback.
I forgot to mention that the Powershell script will be run inside a package and not run in the Inline source code option in my runbook.
Is it possible to save a variable from the script when run inside a package and use it in the next step of the runbook?