0

I can access guid in url or body like {{$guid}} but same doesn't work inside pre-request script.

shyam yadav
  • 214
  • 1
  • 10

1 Answers1

1

actually uuid.v4 represent guid in postman

let uuid = require('uuid');
let guid = uuid.v4(); //you can use this variable in wherever you need to use guid in 
                      //pre-request script 
console.log(guid);
shyam yadav
  • 214
  • 1
  • 10