Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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)