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.
Problem with Server Side script on Custom Record Online External form
I am running into a problem when I run a server side script on an Online External form for a Custom Record. The script basically does a search for contacts and has an if statement to check if matches were returned. Here is what the code looks like:-
--------------------------------------------------------
var filters= new Array(); //set filters....
filters[0]= new nlobjSearchFilter ('firstname',null,'is','Anne',null);
filters[1]= new nlobjSearchFilter ('lastname',null,'is','Jack',null);
var columns= new Array(); //set columns....
columns[0] = new nlobjSearchColumn('title');
var searchresults = nlapiSearchRecord('contact', null, filters, columns ); //perform the search...
//BUG....code does not go into for loop below...!!!!!!