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.
Help With Saved Search Filter
Hi,
I'm trying to search a custom record using a filter for the ID. Unfortunately, according to the execution log, the search is still returning all of the records when there should just be 1. Any idea why my filter doesn't seem to be working? Thanks!
var prodCatFilter = new Array();
prodCatFilter[0] = new nlobjSearchFilter('id',null,'is',productCategoryId);
var prodCatSearch = nlapiSearchRecord('customrecord_tcc_supp_pdt_cat_list',null,prodCatFilter,null);
if(prodCatSearch != '' && prodCatSearch != null){
var testData = JSON.stringify(prodCatSearch);
nlapiLogExecution('DEBUG', 'search data: ', testData);