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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
mystack
  • 4,910
  • 10
  • 44
  • 75

1 Answers1

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.

Community
  • 1
  • 1
mbb5079
  • 646
  • 1
  • 5
  • 10