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!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Searchfilter with custom field of type List/Record
I have a custom field (custbody4) which has the type List/Record in Invoices.
I want to search through all the Records of invoices and only display which have actively selected an option in the List. The code I'm using can be seen below, but it does not function. It throws an exception. Any ideas on what might be wrong?
function listInvoices() {
var names = '';
var columns = new Array();
columns[0] = new nlobjSearchColumn('tranid');
var filters = new Array();
filters[0] = new nlobjSearchFilter('custbody4', null, 'isnotempty');
var searchresults = nlapiSearchRecord('invoice', null, filters, columns);
for (var i = 0; searchresults != null && i < Math.min(10, searchresults.length); i++) {
0