It is my understanding, from reading the help, that you can call a saved search from Suite Talk and add additional criteria (but you can't override the pre-existing criteria).
The following code is mimicked from the Advanced Code Examples on this topic, but is not working. Any advice would be appreciated.
It is dying on the "searchSupportAdvanced.criteria.customerJoin.internalId = CompanyField;" line with an error of "Object reference not set to an instance of an object.". When I debug through the code the search criteria has the right value. It's like I'm not matching the companyfield variable up the right property in the search.
*** FYI - that space in the internalID variable is not really in the code - this forum is adding that space. ***
//company criteria field
SearchMultiSelectField CompanyField = new SearchMultiSelectField();
CompanyField.@operator = SearchMultiSelectFieldOperator.anyOf;
CompanyField.operatorSpecified = true;
//company criteria value
RecordRef[] CompanyRefs = new RecordRef[1];
CompanyRefs[0] = new RecordRef();
CompanyRefs[0].internalId = "5891";
//link company critiera field to value
CompanyField.searchValue = CompanyRefs;
//link criteria to the search column
searchSupportAdvanced.criteria.customerJoin.internalId = CompanyField;
//do search
SearchResult searchResult = NsWebSvc.search(searchSupportAdvanced);