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!
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