Skip to content

Instantly share code, notes, and snippets.

@slinn-01
Created January 31, 2025 20:11
Show Gist options
  • Save slinn-01/1845c338dfef7feb29a1eefb342bb2f0 to your computer and use it in GitHub Desktop.
Save slinn-01/1845c338dfef7feb29a1eefb342bb2f0 to your computer and use it in GitHub Desktop.
Get NS country names and ids
const countries = N_query.runSuiteQL({
query: "SELECT name, uniquekey FROM Country",
}).results.map(element => {
return {
value: element.values[1],
text: element.values[0]
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment