Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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...!!!!!!