I have this in my pre-request script:
var moment = require("moment");
postman.setEnvironmentVariable("current_timestamp", moment().add(10, 'seconds').valueOf());
This returns 13 digit value for timestamp,But my server only accepts upto 10 digits (until seconds) and after this i want to pass the 10 digit value in my request body :
"carid": "c1234",
"timestamp":{{current_timestamp}},
"lastCoordinates": {
"uuid": "2df38805-b0f8-4f8f-947e-c53e98d63ff6",
Any help is greatly appreciated!!