I am getting this when passing TR in filter Filter...
# suitescript
a
I am getting this when passing TR in filter Filter expecting numeric value was removed, as non-numeric value 'TR' was provided
k
@AB NS doesnt have numerical internal ID rep for countries, it has only Universal ID in characters.
j
@AB I encountered this same problem recently. I had to create an instance of a custom record type that has a field of type country in it just to get the list. Something like this:
Copy code
var temp_record = record.create({type: 'customrecord_mycustomrecord', isDynamic: true});
var country_field = temp_record.getField({fieldId: 'custrecord_mycountryfield'});
var country_options = country_field.getSelectOptions();