Dan Anderson
02/16/2021, 1:51 AMrecord.setValue({fieldId: 'shipaddress', value: shipAddress});
What you should do is this:
var shippingAddress = record.getSubrecord({fieldId: 'shippingaddress'});
shippingAddress.setValue({fieldId: 'country', value: shipAddress.country});
And the other thing that surprised me was that, whether you want to get or create a subrecord, the function is getSubrecord, either way.battk
02/16/2021, 4:07 AMbattk
02/16/2021, 4:08 AMbattk
02/16/2021, 4:12 AMtuli
02/17/2021, 1:53 PM