The fields have values and text - you're getting t...
# suitescript
c
The fields have values and text - you're getting the value but expecting the text
d
Yes, I thought the same. But when I did getText instead of getValue, I just got null.
So, the only way is to load entire customer?
n
Maybe "companyname" would work for you or if it's not a company but an individual "firstname" and "lastname"
👍 1
"isperson" checkbox
c
I have been guilty of loading entire records just to get a couple of fields before
d
Yep, companyname works, thank you!
😀 1
c
I'd like to see some performance metrics around record.load vs search.create for some use cases
n
If you're doing a search expecting many results I'd say (gut feeling/ logic?) search rather than load would be faster. If you know the id of the specific record lookupfields maybe be better, if it's multiple fields across one record then load I may outshine lookupfields.