Get body variables from Pre-Request Script

@sreekanthbhargav Warm welcome to the Community :slightly_smiling_face:

You need to store the responseBody in an object and it can used further. For example:

var jsonData = JSON.parse(responseBody);

So here I have stored the entire body, here JSON.parse() method, converts the response into the JavaScript object. Ans then you can access the body using the variable “jsonData”.

Based on your need you can store the response.

If this doesn’t answer your question, revert back with ore details :slightly_smiling_face: