I have created global variabel (and saved it) and it works fine in Params, Headers etc. But when i add the {{variable}} to the XML body it doesnt work. After googling I have also tried with "{{variable}} but no luck. It doesnt seem like Postman reqognizes it as a variable. And it sends the text {{variable}} as the value of the field. Can anybody help please?
I have not seen Postman variable used in an XML request body. The common usecases are in json request body. Let me do some findings and get back to you if this is possible or not.
In the meantime, could you please share a screenshot of how youβre currently making use of the variable in an XML?
Thank you so much for your reply!
This is how i would like to use the variable. It should insert the value of sessionId variable. When i submit the request with the variable it fails. If i remove the variable and insert the value directly the request works fine.
Hi again Mike. For some reason I now get this to work I have no idea of what I have done wrong, but i believe it would be that the request was not saved to the collection when i tested with variable.
Thanks again for your reply, it pushed me in the right direction.