search `result.getValue` says: The return type de...
# suitescript
k
search
result.getValue
says: > The return type depends on the type of search result column that was specified: > ... > • number if the column is a record, list, decimal number, or image field i'm not sure i understand what search would result in a list, and how you would represent a list as a number? is it the id of something that needs to be accessed in another way?
b
there isnt much difference on the technical end, but a select field can use a list as a source instead of a record
there are a bunch of native lists, but you the most obvious are Custom Lists
👍 1
a
it is meaning list, as in List/Record not a list of results. a reference to a list and the number will be the internal id of that List/Record which is selected
👍 1
s
it's also notable that the JS return type for those fields are typically
string
not JS
number
👍 1