I can get shipstate and zip but not others, Thanks
# suitescript
b
I can get shipstate and zip but not others, Thanks
n
Go to help and look at "Retrieving a Body Field Address Subrecord Example"
Specifically around:
Copy code
// Retrieve details from the subrecord that represents the shipping address.
        // To start, instantiate the subrecord.
        var shippingAddress = companyInfo.getSubrecord('shippingaddress');

        // Retrieve values from the subrecord.
          var shippingAddressCity = shippingAddress.getValue({
            fieldId: 'city'
        });
in your case you're getting the subrecord from your SO record, not "companyInfo".
b
Thank you @NElliott
👍 1
s
With NFT accessing this is simple.ts
👀 1
c
What is NFT?
s