Retrieving data from API responses (set variable) in postman and sequencing requests

Опубликовано: 14 Июль 2026
на канале: Qtometa
4,563
61

Retrieving data from API responses (set variable) in postman and sequencing requests #pega #postman

Code to be placed in Tests tab

var jsonData = JSON.parse(responseBody);
postman.setEnvironmentVariable("access_token",jsonData.access_token);

Here access_token is the key and jsonData.access_token is the value. Please update key and value according to your api response.

For any question please ask in comment or drop a note to [email protected]. Follow us on:

LinkedIn:   / qtometa  
Instagram:   / qtometa  
Twitter:   / qtometa  
Facebook:   / qtometa   Support us with a small contribution: https://buymeacoffee.com/qtometa