Below xpath expression looks for AccountNo element anywhere in whole xml document.
#[xpath3('//AccountNo').text]
I am after similar expression to get AccountNo from a json request if present anywhere.
Below are example xml request containing AccountNo.
<Account>
<AccountName>John</AccountName>
<AccountNo>4234324</AccountNo>
</Account>
<Order>
<OrderId>34234242</OrderId>
<ServiceOrder>
<AccountNo>231232</AccountNo>
<ServiceOrderId>54654698787</ServiceOrderId>
</ServiceOrder>
<ServiceOrder>
<AccountNo>231232</AccountNo>
<ServiceOrderId>78979879797</ServiceOrderId>
</ServiceOrder>
</Order>
Thanks in advance for any help.