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 a existing savedSearch
Hi,
recType1 ->---------1-recType2 -1------------<-recType3
Did u got the structure? =P
So, I have a savedSearch in NS. Searching in recType2, filtering with a field in recType 1(I have the option recType1 fields...), returning fields in recType3.
Inside the NS the search is perfect.....but I want to make this filter dimanic(SuiteScript).
Then I have a script that run the existing savedSearch, and I send the filter:
var filters = new Array();
filters[0] = new nlobjSearchFilter("custrecord_fieldInRedType1", "customrecord_recType1", 'anyof', variableField);
var searchresults = nlapiSearchRecord("customrecord_recType2", "existing_saved_search", filters);
Like this....I have the SSS_INVALID_SRCH_FILTER_JOIN