I have a question regarding Suitescript 2.0's sear...
# suitescript
t
I have a question regarding Suitescript 2.0's search.lookupFields method: Let's say I have this search:
var fields = search.lookupFields({
                      
type: search.Type.CUSTOMER,
                        
id: journalEntry.getValue('entity'),
                        
columns: [
                            
"salesrep",
                            
"internalid",
             
]
            
});
Now let's say I want to access the salesrep value. I have always done it like so: fields["salesrep"][0].value - this seems way too verbose and it feels like I'm missing a built in function, something like fields.getValue('salesrep') or something like that. Am I missing something, or did NetSuite just code the lookupFields in a very weird way?
j
I miss nlapiLookupField