let soRec = record.load({
type: record.Type.SALES_ORDER,
id: 2232563
});
let subrec = soRec.getSubrecord({
fieldId: 'shippingaddress'
});
subrec.setValue({
fieldId: "override",
value: true
});
subrec.setValue({
fieldId: 'addrtext',
value: 'jj test jj test jj test'
});
soRec.save({
enableSourcing: false,
ignoreMandatoryFields: true
});