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
how to display country name & state name instead of acronym via suitelet
Hi,
I have a suitelet that obtains the address book data, but instead of the state / province name and country names it displays the acronym / abbreviation for it.
Any ideas on how to return the caption instead of the codes for it ?
thanks in advance
for (var i=1; i <= numberOfAddresses; i++)
{
var internalid = record.getLineItemValue('addressbook','internalid',i);
var addressee = record.getLineItemValue('addressbook','addressee',i);
var defaultshipping = record.getLineItemValue('addressbook','defaultshipping',i);
var defaultbilling = record.getLineItemValue('addressbook','defaultbilling',i);
var label = record.getLineItemValue('addressbook','label',i);
var address = record.getLineItemValue('addressbook','addrtext',i);
var addr1 = record.getLineItemValue('addressbook','addr1',i);