I have a clientscript in that I am using below line of code to get the default shipping address, I also NOT saving record, but when I use
getSubrecord it always create new address as 'custom' on sales order after placing an order every time (Note that I have default address set on customer record). Instead I would like to show default address of customer on sales order but that is not working for me. any specific reason anyone knows? Thanks in advanced.
shipaddress= Record.getSubrecord({
fieldId: 'shippingaddress'
});