Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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);