In the documentation (https://octopus.com/docs/projects/variables/variable-substitutions#VariableSubstitutionSyntax-Iteratingoversetsofvalues) it is stated that I can access the key of an iteration by just using the iteration variable,
e.g. for
#{each variable in Variables}
Key=#{variable}
#{/each}
with variables like this:
Variables[a] = 5
Variables[b] = 7
the output is
However, when iterating through complex variables (e.g. certificates) there seemingly is no way to access the key, .e.g.
when using the same code but with the following variables:
Variables[a] = (Certificate with ID Certificate-1)
Variables[b] = (Certificate with ID Certificate-2)
the output is
Key=Certificate-1
Key=Certificate-2
Is there any way to access the key ("a"/"b" in this example) when iterating over complex variables?
In the documentation (https://octopus.com/docs/projects/variables/variable-substitutions#VariableSubstitutionSyntax-Iteratingoversetsofvalues) it is stated that I can access the key of an iteration by just using the iteration variable,
e.g. for
with variables like this:
the output is
However, when iterating through complex variables (e.g. certificates) there seemingly is no way to access the key, .e.g.
when using the same code but with the following variables:
the output is
Is there any way to access the key ("a"/"b" in this example) when iterating over complex variables?