I have two variables borrowName and Seller, I need to dynamically add variable both key&value into json raw body of request,
- case1. if borrowName is null, then I can add seller into request body.
- case2. if seller is null, then I can add borrowName into request body.
These two variables are not fixed and need to be removed/added dynamically according to the empty value.
here is the capture,
I don’t know how to do this via postman pre-request script.
Any help will be greatly appreciated.