Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
search all customer name fields with contains OR
Hi All,
does anyone know if it possible to search the firstName, lastName and companyName fields at once.
So if any of them contains the search field the customer is returned. But with an OR. So they all don't have to contain the search field, just at least one of the fields do.
at moment i have:
$SearchField = new SearchStringField();
$SearchField->operator = "contains";
$SearchField->searchValue = 'search this';
$search->firstName = $SearchField;
but i can't figure out how to do the other fields in the same search with an OR
0