Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Address Subrecord field undefined on Sales Order
I am using the following code to try and pull a custom field value from the selected shipping address on a sales order. I can see that the subrecord is successfully retrieved in the browser debugger, but I cannot figure out why it is returning an undefined value for custrecord_osi_route_code. custrecord_osi_route_code is a custom dropdown list on the address record and there is definitely a value in the addresses I am selecting. Even if I change the script to pick a default field like zip, it still returns an undefined value. Any help is appreciated!
2