title: Jmeter -- how to combine variable name & counter()
body: <p>I've got the following problem:</p>
  
  <p><a href="https://i.stack.imgur.com/XhQ1Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XhQ1Q.png" alt="enter image description here"></a></p>
  
  <p>I do gather that ProductId variable is assigned with the first value and then only that value is used when I refer to <code>${productId}</code>.</p>
  
  <p>I was trying to apply <code>${__counter()}</code> to reference name in RegexExtractor,
  but then BeanShellAssertion fails to set the property.</p>
  
  <p>How should I properly work this around?</p>