I created octopus ranbook and one of the steps is run sql script. I need get result from sql procedure and set it to output variable which value I need to use on second step. When I try set output variable like Set-OctopusVariable -name "Name" -value $result right after sql script it fails because octopus try execute it like sql. I use SQL - Execute Script template and looks like I can't mix sql code and Set-OctopusVariable together. Can someone help with this issue
Tried use Set-OctopusVariable. Sql script works correctly, I logged results and it's ok, but I can't get it on another step of ranbook