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.
SuiteScript - Search Join
Need some help how to do the Search Join (supportcase and message)
Below is my codes, Got " message is not a valid internal ID" error. Please advise what I did wrong. Thanks so much.
// Criteria
var filters = new Array();
filters[0] = new nlobjSearchFilter('casenumber', null, 'is', datain.casenumber);
filters[1] = new nlobjSearchFilter('message', 'message', null, null);
// Results
var columns = new Array();
columns[0] = new nlobjSearchColumn('company', null, null);
columns[1] = new nlobjSearchColumn('casenumber', null, null);
columns[2] = new nlobjSearchColumn('message', 'message', null, null);
columns[3] = new nlobjSearchColumn('messagedate', 'message', null);
columns[4] = new nlobjSearchColumn('messagetype', 'message', null);
var searchresults = nlapiSearchRecord('supportcase', null, filters, columns);
// Loop the results;