Is there a workaround to adding filters for search...
# suitescript
a
Is there a workaround to adding filters for search.lookupFields?
b
this is a weird question, the answer is no
do a normal search
a
well I have a particular records I want to look at directly going the search route would mean I'd have to load the records after running a search right?
whereas I can just input a record id in lookupfields
b
lookupFields is just a variation of a normal search
you actually have access to less columns in lookupFields than you do in searches
and there is no point adding filters, you already uniquely identified a record with the id
a
Not so much filtering for the record, but filtering the data in the record is what I'm trying to accomplish
ie: if a units type is the base unit
b
keep in mind that lookupFields basically only returns data from one search row. you cant filter it out
a
ah okay that makes more sense