Create a .js file as Module in following format and name “jj_cust_module_country.js”
define([‘N/record’],
(record) => {
let counter = 0;
const country_SN = function () {
return {
0: ‘Domestically Sourced’,
1: ‘Afghanistan’,
2: ‘Africa’,
3: ‘Albania’,
4: ‘Algeria’,
5: ‘Andorra’,
6: ‘Angola’,
7: ‘Antigua and Barbuda’,
8: ‘Argentina’,
9: ‘Armenia’,
10: ‘Austria’,
11: ‘Azerbaijan’,
12: ‘Bahrain’,
13: ‘Bangladesh’,
14: ‘Barbados’,
16: ‘Belarus’,
17: ‘Belgium’,
18: ‘Belize’,
19: ‘Benin’,
20: ‘Bhutan’,
21: ‘Bolivia’,
22: ‘Bosnia’,
23: ‘Botswana’,
24: ‘Brazil’,
25: ‘Brunei’,
26: ‘Bulgaria’,
27: ‘Burkina Faso’,
28: ‘Burundi’,
29: ‘Cabo Verde’,
30: ‘Cambodia’,
31: ‘Cameroon’,
32: ‘Canada’,
31: ‘Central African Rep.’,
33: ‘Chad’,
34: ‘Channel Islands’,
35: ‘Chile’,
36: ‘China’,
37: ‘Colombia’,
38: ‘Comoros’,
39: ‘Congo’,
40: ‘Costa Rica’,
40: “Côte d’Ivoire”,
41: ‘Croatia’,
42: ‘Cuba’,
43: ‘Cyprus’,
44: ‘Czech Rep.’,
45: ‘Denmark’,
46: ‘Djibouti’,
47: ‘Dominica’,
48: ‘Dominican Rep.’,
49: ‘DR Congo’,
50: ‘Ecuador’,
51: ‘Egypt’,
52: ‘El Salvador’,
53: ‘Equatorial Guinea’,
54: ‘Eritrea’,
55: ‘Estonia’,
56: ‘Eswatini’,
57: ‘Ethiopia’,
58: ‘Faeroe Islands’,
59: ‘Finland’,
60: ‘France’,
61: ‘French Guiana’,
62: ‘Gabon’,
63: ‘Gambia’,
64: ‘Georgia’,
65: ‘Germany’,
66: ‘Ghana’,
67: ‘Gibraltar’,
68: ‘Greece’,
69: ‘Grenada’,
70: ‘Guatemala’,
71: ‘Guinea’,
72: ‘Guinea-Bissau’,
73: ‘Guyana’,
74: ‘Haiti’,
75: ‘Holy See’,
76: ‘Honduras’,
77: ‘Hong Kong’,
78: ‘Hungary’,
79: ‘Iceland’,
80: ‘India’,
81: ‘Indonesia’,
82: ‘Iran’,
83: ‘Iraq’,
84: ‘Ireland’,
85: ‘Isle of Man’,
86: ‘Israel’,
87: ‘Italy’,
88: ‘Jamaica’,
89: ‘Japan’,
90: ‘Jordan’,
91: ‘Kazakhstan’,
92: ‘Kenya’,
93: ‘Kuwait’,
94: ‘Kyrgyzstan’,
95: ‘Laos’,
96: ‘Latvia’,
97: ‘Lebanon’,
98: ‘Lesotho’,
99: ‘Liberia’,
100: ‘Libya’,
101: ‘Liechtenstein’,
102: ‘Lithuania’,
103: ‘Luxembourg’,
104: ‘Macao’,
105: ‘Madagascar’,
106: ‘Malawi’,
107: ‘Malaysia’,
108: ‘Maldives’,
109: ‘Mali’,
110: ‘Malta’,
111: ‘Mauritania’,
112: ‘Mauritius’,
113: ‘Mayotte’,
114: ‘Mexico’,
115: ‘Moldova’,
116: ‘Monaco’,
117: ‘Mongolia’,
118: ‘Montenegro’,
119: ‘Morocco’,
120: ‘Mozambique’,
121: ‘Myanmar’,
122: ‘Namibia’,
123: ‘Nepal’,
124: ‘Netherlands’,
125: ‘Nicaragua’,
126: ‘Niger’,
127: ‘Nigeria’,
128: ‘North Korea’,
129: ‘North Macedonia’,
130: ‘Norway’,
131: ‘Oman’,
132: ‘Palestine’,
133: ‘Pakistan’,
134: ‘Panama’,
135: ‘Paraguay’,
136: ‘Peru’,
137: ‘Philippines’,
137: ‘Poland’,
138: ‘Portugal’,
139: ‘Qatar’,
140: ‘Réunion’,
141: ‘Romania’,
142: ‘Russia’,
143: ‘Rwanda’,
144: ‘Saint Helena’,
145: ‘Saint Kitts and Nevis’,
146: ‘Saint Lucia’,
147: ‘Saint Vincent’,
148: ‘San Marino’,
149: ‘Sao Tome & Principe’,
150: ‘Saudi Arabia’,
151: ‘Senegal’,
152: ‘Serbia’,
153: ‘Seychelles’,
154: ‘Sierra Leone’,
155: ‘Singapore’,
156: ‘Slovakia’,
157: ‘Slovenia’,
158: ‘Somalia’,
159: ‘South Africa’,
161: ‘South Sudan’,
162: ‘Spain’,
163: ‘Sri Lanka’,
164: ‘State of ‘,
165: ‘Sudan’,
166: ‘Suriname’,
167: ‘Sweden’,
168: ‘Switzerland’,
169: ‘Syria’,
170: ‘Taiwan’,
171: ‘Tajikistan’,
172: ‘Tanzania’,
173: ‘Thailand’,
174: ‘The Bahamas’,
175: ‘Timor-Leste’,
176: ‘Togo’,
177: ‘Trinidad and Tobago’,
178: ‘Tunisia’,
179: ‘Turkey’,
180: ‘Turkmenistan’,
181: ‘Uganda’,
182: ‘Ukraine’,
183: ‘UAE’,
184: ‘UK’,
185: ‘US’,
186: ‘Uruguay’,
187: ‘Uzbekistan’,
188: ‘Venezuela’,
189: ‘Vietnam’,
190: ‘Sahara’,
191: ‘Yemen’,
192: ‘Zambia’,
193: ‘Zimbabwe’
}
}
return {
country_SN
}
});
Add this file to the folder where the suitelet file is located.
Call this module to the suitelet.

use this code snippet to list countries in drop down list
let countrySN = countryAD.country_SN();
log.debug(“countrySN”, countrySN);
var subs = form.addField({
id: ‘country’,
type: serverWidget.FieldType.SELECT,
label: ‘Country’,
container: ‘usergroup’,
source: “Country”
});
for (var key in countrySN) {
subs.addSelectOption({
value: key,
text: countrySN[key]
});
}