Assignment in conditional expression

Hey @klysdale,

Welcome to the community :wave:

I have to be honest, I know very little about XML responses and using the xml2Json module in Postman but I was able to extract that value from your sample response.

I used the following code in the Tests tab to move down through the response body to get to the value. It’s not the cleanest or most efficient way of accessing the value but hopefully, it gives you a starting point.

let responseJson = xml2Json(pm.response.text());
let nonceId = responseJson['soapenv:Envelope']['soapenv:Body'].processOCIMessageResponse.processOCIMessageReturn.BroadsoftDocument.command.nonce;

pm.globals.set('nonceId', nonceId)

I did find that the response that you posted had several encoded &lt;characters, which would be the < character. Once I manually changed these, the response body was no longer a string. I’m not sure if that was just a formatting issue with copying and pasting or some actual issue from the response on the live service.