Discussions
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')