Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Here’s an outline with best practices for making your inquiry.
My question:
i have designed pre-requisite script as show below to generate random name field values
let x = Math.random();
let name = ‘Lauren’ + x;
pm.globals.set(“name” ,name);
how can i pass this name variable in below body format
{“parameterData”: “{"action": "Insert","name": "Lauren"}”}
Thanks for your revert ,but as my input body takes as whole string with backward slashes (" ") as shown in below request body so how can i pass name as variable in request body .
{“parameterData”: “{“action”: “Insert”,“name”: “Lauren”}”}
if i will try passing variable as name in below request body then i am getting error in response : (