Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
AE: How do I get the shipping address from Sales Orders in a format?
Hi all,
I've been running into some walls when it comes to scripting with shipping addresses.
What I'm trying to achieve is to get the shipping address from a sales order, combined with other information, into a STRING variable that gets rendered as a PDF later on. (We are not using the Advanced PDF/HTML templates as it lacks the customization we need for these PDFs, instead we are using SuiteScript)
However, using the "shipaddress" from the sales order record, gives an unformatted string, which is not allowed on the PDF, it needs to be in a certain format.
Using "shipaddr1", "shipzip", "shipcity", "shipcountry" from the sales order record returns empty variables even though using a chrome extension I can clearly see these are indeed filled with information. (Using the above variables from the customer record is not an option, as the shipping address may and will be changed on the sales order)