SearchFilter Class
Purpose
Defines a single search filter for the detailedSearch()
method's filterArr parameter. There can be up to five SearchFilters
per search, and they are passed to the method in an array.
Parameters
fieldName
String name of data field used for filtering
opCode
Code of operation. The following codes are available. Not all codes are compatible with all fields; the same rules apply as in the Detailed search component.
EQequalsNEQnot equalSTstarts withCTcontainsNCTdoes not containLTless thanGTgreater thanLEless or equalGEgreater or equalINin arrayNINnot in arrayCHcheckedNCHuncheckedINCincludingNINCnot includingNULis nullNNULnot nullISisTREEin sub-treeNTREEnot in sub-treeFLAGflaggedUFLAGunflaggedVIEWviewedUVIEWunviewed
opValue
Filter's value as a string. Use comma-separated enumerations for arrays.
Example
SearchFilter[] filters = new SearchFilter[1];
SearchFilter filter = new SearchFilter();
filter.setFieldName("firstName");
filter.setOpCode("EQ");
filter.setOpValue("Smith");
filters[0] = filter;
SearchFilterArr filterArr = new SearchFilterArr(filters);
LongArr arr = binding.detailedSearch(sessionId, null, "lead", filterArr, "AND", null);
long[] ids = arr.getArr();