Reputation: 110
Why would a field in a custom record not respond to a filter when searched? I filter using that field and it's as though I'm not even passing a filter.
There should only be one result when the filter is used as there is only one record where that filter evaluates to true.
Cheers, PJ
Upvotes: 1
Views: 1616
Reputation: 110
As bknights pointed out, the operator needs to be 'equalto', not is. All credit to bknights.
Upvotes: 0
Reputation: 2850
Based on your last sentence, I am assuming you are getting more than one search result?
If so, then you might be retrieving inactive records. Try adding the filter
nlapiSearchFilter('isinactive',null, 'is', 'F')
If you do not include this filter on custom record search, NetSuite gets inactive and active records.
Upvotes: 1
Reputation: 15462
You've wrapped the standard search so who can tell? What does Netsuite.search
look like?
Upvotes: 1