Hello - I am still learning Postman but have problem with Dynamic Variables.
I would like to save {{$randomExampleEmail}} to a collectionVariable and use in multiple requests but I have problem.
Write now, I added the following to “pre-request script” in the collection folder.
pm.collectionVariables.set(“username”, “{{$randomExampleEmail}”);
console.log(pm.collectionVariables.get(“username”))
When I run the request, I get the following in Postman console
Console > {{$randomExampleEmail}
I wanted {{$randomExampleEmail} to be replaced by e-mail address but not sure what I am doing wrong. Can someone help me on this?