Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Search Customer / Contact
Hi.
I need to search all customer and all contact records for an email address? Can this be done in one search?
Also, can you set the sort of the result set in anyway? I'd like to get the most recently modified/created first?
Here's what I have so far:
Dim custsearch As New NetsuiteWebQuotes.com.netsuite.webservices.CustomerSearch
Dim custsearchbasic As New NetsuiteWebQuotes.com.netsuite.webservices.CustomerSearchBasic
custsearch = New NetsuiteWebQuotes.com.netsuite.webservices.CustomerSearch
custsearchbasic = New NetsuiteWebQuotes.com.netsuite.webservices.CustomerSearchBasic
custsearch.basic = custsearchbasic
Dim searchEmail As New NetsuiteWebQuotes.com.netsuite.webservices.SearchStringField
searchEmail.searchValue = Email
searchEmail.operator = NetsuiteWebQuotes.com.netsuite.webservices.SearchStringFieldOperator.contains