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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Issues using a search filter to find a contact email address
Hey Guys,
We have an online form that allows users to register for training online. They punch in various details and then some script runs to see if that contact already exists. One piece of the script looks to compare the email address that they enter into a field - custrecordemail – with the email address on existing contact records. The search filter is not returning any results though.
Below is a extract of the script
//found contacts with a matching email address
var EmailFilter = new Array()
EmailFilter[0] = new nlobjSearchFilter('email',null,'is',record.getFieldValue('custrecordemail'))
var EmailColumns = new Array()
EmailColumns[0] = new nlobjSearchColumn('internalid','customer')
0