I asked the support and they suggested to use sear...
# suitescript
n
I asked the support and they suggested to use search.lookupFields() for getting the text value of a field if the field is record type. that's definitely a bad design