```const billingCountryCode = salesOrder.getValue(...
# suitescript
c
Copy code
const billingCountryCode = salesOrder.getValue({fieldId: 'billcountry'});
Is this expected to retrieve no value from a Sales Order?
b
it works for historical reasons
but you want to get the value from the billing address subrecord for a more future proof solution
c
I don't see it working
The value comes back empty
I'm trying to get the bill address subrecord but having no luck
b
what did the code for the subrecord look like
c
Copy code
const billAddress = salesOrder.getSubrecord({fieldId: 'billaddress'});
That is not correct though
b
wrong field
the billaddress is the text area that is sourced from the billing address subrecord
the billingaddress field is the actual subrecord
c
Thanks!