title: How to get HTTP POST request body in Beanshell Preprocessor?
body: <p>I am facing some trouble using jmeter. This is my use case, I am using CSV data source parameters to construct a HTTP POST request, the request body is read from a CSV column </p>
  
  <p><a href="https://i.stack.imgur.com/E9U2C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E9U2C.png" alt="enter image description here"></a></p>
  
  <p>which contains some placeholders like <code>${source_id}</code> </p>
  
  <p><a href="https://i.stack.imgur.com/8upMw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8upMw.png" alt="enter image description here"></a></p>
  
  <p>I want to replace these placeholders with jmeter parameters which I am initialising through a regex/json extractor(read from the response of last PUT request). I tried using the jmeter variable name in the CSV file but the variable values are not getting substituted. I guess I will have to use the beanshell pre-processor to modify the HTTP POST request body. Can anyone help with the methods I can use to get the HTTP POST request body.</p>