Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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' ));