Discussions
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