SearchUtils Class

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

Namespace

DataSource

Usage

We recommend that you develop your own search implementation that can search columns in addition to the designated name field.

SearchUtils Methods

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.

Signature

public static List<DataSource.TableResult> searchByName(DataSource.SearchContext searchDetails, DataSource.Connection connection)

Parameters

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.

Return Value

Type: List<DataSource.TableResult>