Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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>