SearchUtils Class
Helper class for implementing search on a custom adapter for Salesforce Connect.
We recommend that you develop your own search implementation that can search columns in addition to the designated name field.
The following are methods for SearchUtils.
-
searchByName(searchDetails, connection)
Queries all the tables and returns each row whose designated name field contains the search phrase.
Queries all the tables and returns each row whose designated name field contains the search phrase.
public static List<DataSource.TableResult> searchByName(DataSource.SearchContext searchDetails, DataSource.Connection connection)
-
searchDetails:
Type: DataSource.SearchContext
The
SearchContextclass that specifies which data to search and what to search for. -
connection:
Type: DataSource.Connection
The
DataSource.Connectionclass that connects to the external system.
Type: List<DataSource.TableResult>