Tiina Böös
09/26/2025, 8:21 AMCeligo AI
09/26/2025, 8:22 AMAI generated answer (using internal Slack threads):To get a list of all nexus countries in use via SuiteScript, you can use the
search API to search for all nexus records. Here is a sample code snippet:
javascript
var search = require('N/search');
function getAllNexusCountries() {
var nexusSearch = search.create({
type: search.Type.NEXUS,
columns: ['country']
});
var nexusCountries = [];
nexusSearch.run().each(function(result) {
nexusCountries.push(result.getValue('country'));
return true;
});
return nexusCountries;
}
This function will return an array of all nexus countries in use. Please note that the 'country' field returns the country code, not the country name.
******
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/26/2025, 8:22 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814453
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805725098
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.787597656
Celigo AI
09/26/2025, 8:22 AM