Download NetSuite JavaScript Country and State Lookups

This article is relevant if you are seeking to have a country list and a state list that is used in NetSuite SuiteScript environments.

Background

During development of a NetSuite custom recurring billing engine for a client, while working on the SuiteScript Server Pages to collect credit cards, we needed a list of countries and associated state names for both United States and Canada with values that would feed into our custom REST API to create a customer billing addresses record. ¬†The client wanted to limit the countries it would do business with. ¬†We need to supply NetSuite’s country list so that it could be pared down.

In performing this work, we recognized that we could start with the elements that NetSuite provided us to start with. ¬†Hence, we used the technique that any good HTML developer does to “Inspect Element” to learn about the construction of a webpage. ¬†Indeed, NetSuite has an array of countries and related states. ¬†We inspected these elements, made some minor refinements, and have included them here for your download into your JavaScript libraries.

Get Country List and Related State List in JSON / JavaScript format

The official Country List maintained by the ISO standard body is here.  But you can use this list here:

http://blog.prolecto.com/wp-content/uploads/2015/03/netsuite-country-state-list-20150330.js

 Develop Custom NetSuite Solutions

Don’t let built-in NetSuite features and documented APIs get in the way of your needed software solution. ¬†Contact us if you seek to push NetSuite farther to solve real business problems.

Be Sociable, Share!

Marty Zigman

Holding all three official certifications, Marty is Southern California's NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc. He is a former Deloitte & Touche CPA and has held CTO roles. For over 25 years, Marty has produced leadership in ERP, CRM and eCommerce business systems. Contact Marty to set up a conversation.

More Posts - Website - Twitter - Facebook - LinkedIn - Google Plus - YouTube

| Tags: , , , , | Category: NetSuite, Technical | Leave a comment

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>