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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Search Customers for specific stage(s)?
I searched botht eh NetSuiteWebServicesPlatformGuide as well as the NetSuiteWebServicesRecordsGuide but was unable to find an answer. I feel like I'm missing some doc file as I have trouble finding this kind of basic information.
Here is what I'm trying to find:
How do I use webservices to search for a Leads or Prospects or Customers? To find customer at any stage which match a specific phone number, I make this query:
// Create and setup the phoneNumber search string
SearchStringField phoneNumber = new SearchStringField();
phoneNumber.@operator = SearchStringFieldOperator.contains;
phoneNumber.operatorSpecified = true;
phoneNumber.searchValue = strNumber;
CustomerSearchBasic custSearchBasic = new CustomerSearchBasic();
custSearchBasic.phone = phoneNumber;