Hi, I am trying to get a value from the get request params. I found that pm.request.url.query.all() creates an array of objects with the url params. So I tried the following:
let queryParams = pm.request.url.query.all();
So this gets the parameters and when I console log it shows them in object and key / value pairs. Then I need to get a specific value of a property with the following function:
There is a property “from” with value: 2019-08-15. I see it when I console.log the queryParams variable. But when I console.log the above function it returns “null”.
This solution is not working can something else to use for toObject().from) ?
Also, url is set are from environment variables
When use. console.log(request.url);
I get this output
{{urlwfsservice}}/v1/merchantorders/{{orderId}}/BoardingActivities.updateMerchantToHub.REQUEST/details/
how can I get output like below simpleurl ?
var simpleurl = “https://dev-someweburl.com/v1/merchantorders/ZN2aB/BoardingActivities.updateMerchantToHub.REQUEST/details/”;