Discussions
Problem with setting a custom shipping/billing address on a sales order
I see that there are 2 new properties on the SalesOrder object. SalesOrder.transactionBillAddress and SalesOrder.transactionShipAddress. They are used to set custom addresses on the sales order (instead of picking from the addresses on the customer record). This is outlined here:
https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteFlex/WebServices/Transactions.191.2.html#1201670
My problem is that this doesn't work when the Setup --> Company --> General Preferences --> Allow Free-Form States in Addresses preference is not checked (which I believe is the default). Setting the transactionBillAddress.billState or the transactionShipAddress.shipState to one of the state enumerations (e.g. "_vermont") doesn't work (it shows "_vermont" in the address) and setting the address to "Vermont" means the that the state drop down isn't populated when we try to edit the address in the UI.