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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
NetSuite Tip - Setting Values to a Country List/Record Field
In Netsuite, the Standard Country list's internal id cannot be seen through UI. We need to find the internal id of the country we are about to set to the field
Solution
Get the country value from any of the Netsuite records and store it in a variable
For ex: Pulling ship country from sales order and setting that value to a country list/record custom field of a custom record.
Added a code snippet below
var shipCountry=salesorder.getValue('shipcountry) //or retreive from the address book
var stateSearchObj = _search.create({
type: "state",
filters:
[
["country","anyof",shipCountry]
],
columns:
[
_search.createColumn({name: "country", label: "Country"})