Hi there,
I’m struggling to store the response of this id into the variables please, i will appreciate all answers:
{
"test": {
"id": "2e2e2-2e2e2e-2e2e2e-2e2e2e-2e2e",
"testname": "Test123"
}
}:
While i’m trying to store variables its storing Null in the variables:
I’ve already tried pm.environment.set("testid", pm.response.json().id);
and
let response = pm.response.json(),
id = JSON.parse(response);
pm.environment.set("testid", response);