Home SalesforceFlow Searching Text in Flow Data Table

Searching Text in Flow Data Table

Search Bar in Screen Flow Data Table

by Dhanik Lal Sahni
Search Bar in Screen Flow Data Table

Lightning Flow data table is a component that can be used within a flow to display data in a tabular format. It is similar to a traditional table and can be customized to show data from different objects or fields. The data table flow component was missing functionality to search content in it. In the summer 23 release, the search bar is added to the screen flow data table. This post will give step-by-step detail for searching text in Flow Data Table by enabling a search bar in the screen flow data table.

Steps

  1. Create a Data Source for the Data table
  2. Add the Data Table Input component in the Screen Element
  3. Enable Search Bar in Data Table
  4. Test Functionality

1. Create a Data Source for the Data table

Create a data source for the data table. For the demo, I have added Record Get Element to retrieve all accounts. You can build data collection based on your use case.

Screen Flow Data table - Data Collection- SalesforceCodex

2. Add the Data Table Input component in the Screen Element

Once the data source is ready, add a screen element on the flow builder. Add Data Table input component on newly added screen element.

Set Data Table component properties

  1. API Name – Summer23ScreenFlow
  2. Label – Summer 23 Screen Flow Enhancement – Search Bar
  3. Use Label as the table title – checked
  4. Source Collection – Select the source which we have created in step 2. It is Accounts from Get_Accounts for me.
  5. Row Selection Mode – Single
  6. Require user to make a selection- Checked
  7. Configure Columns – Account Name (add based on your requirement)
Screen Flow Data table - Data Source SalesforceCodex

3. Enable Search Bar in Data Table

Enable the Search bar by checking the Show search bar option in Configure Data Source section. By default this option is unchecked.

Screen Flow Data table - Enable Search Bar SalesforceCodex

4. Test Functionality

Test the flow in debug or record page. It will search the content using the search bar. We have to enter the search text and press enter button to search text values. The filtered result will show in the data table.

Screen Flow Data table - Data Result- Searching Text in Flow Data Table SalesforceCodex

References

Search and Display Data Table Results in Screen Flows

Related Post

Data Table in Screen Flow

You may also like

2 comments

Verify API Connection in Flow HTTP Callout - SalesforceCodex December 26, 2023 - 11:59 am

[…]  Searching Text in Flow Data Table […]

Reply
Get User Time Zone Offset in Salesforce - Salesforce Codex March 3, 2024 - 1:41 pm

[…] Searching Text in Flow Data Table […]

Reply

Leave a Comment

Top 10 Salesforce Service Cloud Features Top 10 Best Practices for Lightning Flow Facts and Statistics for Salesforce’s Size and Market Share Top 5 Contract Management Salesforce Apps Top 10 Enterprise Integration Use Cases