tmccann
(Trent McCann)
21
@ed_truqc Thats awesome. The great thing about Postman is its very flexible in what it can do when it comes to working with creating data.
I am more than happy to help any way I can. If you run into any problems, feel free to reach out to me at any time.
luckvery
(luckvery)
22
Postman added update to allow us to more elegantly update the request body in a pre-request-script.
There are many ways to do it but for me I created a place holder pre-request-created to replace a uuid that I generate.
const body = pm.request.body.raw.replace("{{pre-request-created}}", uuid);
pm.request.body.update({
mode: 'raw',
raw: body
});