I am trying to set a value dynamically in the params tab
If i have nothing in prescript, it runs fine. However if I try to to change the value of quantity (4, this would be dynamic but for test purpose its static…)
Added to prescript
pm.request.url.query.map((param)=> {
if (param.key == ‘quantity’ ) {
Object.assign (param,{“value”:“4”})
}}
)
Hi. This is because while you were editing the url, that parameter switches to the last of the query string sent out to the server. (You can open the console to see the final request.) The server may fetch the wrong query parameters to verify the signature. As long as you shift the “signature” parameter to the last, it will work.