Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Custom Shipping Address not getting set on Sales Order
Hi,
I am creating Sales Order through Suitescript 1.0 and trying to set Shipping Address on an Sales Order through the script when order is getting created. For US Addresses, all the fields are getting assigned correctly. For Canada, only Country, Zip Code & Ship Phone is getting set. All others going blank. Below is the Suitescript I'm using to assign the address.
Any help on this is appreciated.
record.setFieldText('shipaddresslist', 'New');
record.setFieldValue('shipattention', searchresult.getValue( 'custrecord_ah_inb_ship_to_attn' ));
record.setFieldValue('shipaddressee', searchresult.getValue( 'custrecord_ah_inb_ship_to_addressee' ));
record.setFieldValue('shipaddr1', searchresult.getValue( 'custrecord_ah_inb_ship_to_addr1' ));