Tiina Böös
09/25/2025, 1:00 PMCeligo AI
09/25/2025, 1:00 PMAI generated answer (using internal Slack threads):To get all nexus country codes in use, you can use SuiteScript to fetch the list of countries. Here is an example of how you can do this:
javascript
var countryList = search.create({
type: "subsidiary",
filters:
[
["isinactive","is",false]
],
columns:
[
search.createColumn({name: "country", label: "Country"})
]
});
var countryResultSet = countryList.run();
var countryResult = countryResultSet.getRange(0, 1000);
for (var i = 0; i < countryResult.length; i++) {
var country = countryResult[i].getValue({name: 'country'});
log.debug('Country', country);
}
This script will return a list of all active countries in your NetSuite instance. The country codes are returned in two-letter ISO format.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/25/2025, 1:00 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804626524
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800964415
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799865782
Celigo AI
09/25/2025, 1:00 PM