To resolve the issue of the delivery address not being set correctly in Sales Orders, ensure the Override checkbox is explicitly set to false when creating a Sales Order (SO). let shipaddrSubrecord = salesOrder.getSubrecord({ fieldId: ‘shippingaddress’ }); shipaddrSubrecord.setText({ fieldId: ‘country’, value: shipTo?.Address[“@attributes”]?.isoCountryCode }); shipaddrSubrecord.setValue({ fieldId: ‘attention’, value: ” }); shipaddrSubrecord.setValue({ fieldId: ‘addressee’, value: Array.isArray(shipTo.Address.PostalAddress.DeliverTo) ?… Continue reading Delivery Address Not Set Correctly in Sales Order