Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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