Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Here’s an outline with best practices for making your inquiry.
I’m trying to store a value from the response as a collection variable.
I use the command, pm.collectionVariables.set(“details_id”, responseJson.Details.id); in a test function.
I’ve tried two different requested to try and get the information. One is a GET request which gives the error Cannot read property ‘id’ of undefined. The other is a PUT request which doesn’t give an error but when I look at the collection variables the current variable field is empty.