Postman how to get request body with already substituted variables

mp222
mp222 Newcomer

Hi,

could you help me with one thing

I need to save request body (json with variables) to use it later in my prerequest script. Unfortunately when I display request data

console.log(request.data);

It looks for example like this:

{


"session": "{{session}}",


"playerid": "{{playerid}}",


"currency": "{{currencyCode}}",

"action":

{
"command": "com",


"parameters": {

"country": "{{countryCode}}"

}
}
}

Is there a possibility to get request body in Pre-req. with already substituted variables?

Best Answer

Answers