Reputation: 45
In my project,I need to send request ID in request for postman API testing. It is a google server based application project.For job creation in application,an unique ID will be sent along with required details in request as json format.
That ID will not be same for all request.It will be vary on every request. I couldn't get via API backend calls.Is any possible to generate it by postman pre-requiste script???
Thanks in advance
Upvotes: 2
Views: 1949
Reputation: 275
you use guid in Pre-request Script like this:
let uuid = require('uuid');
var gid = uuid.v4(); //now you can pass gid where ever you need unique id.
Upvotes: 3