0

I have variable group variable as given below

 opp453.Name = "Raj"
 pqr325.Name = "Shyam"

I know can I retrieve the variable group as below

$(opp453.Name) or $(pqr325.Name)

If I have another variable

$ptrref=opp453 or
$ptrref=pqr325

Then how can I refer to this variable inside the first variable

$($ptrref.Name)

to retrieve the original value

4
  • Where do you want to referred the variable? in script? in pipeline task? Commented Dec 10, 2019 at 8:29
  • Has the problem been solved? If so, please accept the solution as the answer so it would be helpful for other members who get the same issue to find the solution easily.If not,please feel free to tell. Commented Dec 16, 2019 at 8:25
  • issue not solved Commented Dec 16, 2019 at 8:37
  • Did you face with any new problem around this subject? since this kind of operation is not possible and a workaround is provided. Commented Dec 17, 2019 at 9:12

1 Answer 1

1

I think this is impossible to achieve at present because Nested variables are not supported yet in build pipeline/variable group.You can check this similar thread for some more details.

We could also use the same workaround, using InlinePowershell task to determine the value of ptrref, and set the value of opp453.Name/ pqr325.Name according to the value of ptrref.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.