Tyler
03/20/2020, 3:07 PMvar 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?jen
03/20/2020, 8:51 PM