How to get the ID from a response body, set it as dynamic variable and use it in next request Body as variable?

Hello all,
I’m trying to find a solution of the following situation:
POST - Create account
POST - Login
POST - Start //Giving me the first question’s id into the respond
POST - Question 1 //Giving me the id of the next question in the response.

What I’d like to do is taking the respond from POST Start Body and set it as variable into my Environment. Then taking this variable’s value and putting it into the Next Question’s Body as variable…and so on.

Best regards,

1 Like

Take a look at this tutorial I did a while back.

Essentially you need to:

  • parse the response, extract the data you need
  • set a Postman variable
  • use that Postman variable in another request.

2 Likes