I am using Postman v7.30.1. In test script I wrote:
I want to extract the access_token from the JSON response and store it in Collections Variable:
var jsonData = pm.response.json();
pm.collectionVariables.set(‘access_token’, jsonData.access_token);
Then i tried setting collection variable to a hard coded value, but that too does not work:
pm.collectionVariables.set(‘access_token’, ‘abc’);
Am I missing something?