SearchUtils Class

Helper class for implementing search on a custom adapter for Salesforce Connect.

DataSource

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.

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 SearchContext class that specifies which data to search and what to search for.

  • connection:

    Type: DataSource.Connection

    The DataSource.Connection class that connects to the external system.

Type: List<DataSource.TableResult>