Home SalesforceFlow Data Table in Screen Flow

Data Table in Screen Flow

by Dhanik Lal Sahni
Data Table in Flow

Showing data in tabular format on lightning pages is the basic requirement. Nowadays we prefer to build screens in screen flow. To show data in tabular format, we use the Lighting component built-in aura component or lighting web component. Salesforce introduced the Data Table Input element in Screen flow to show tabular data. This post will explain how to include a data table in Screen flow.

Let us show a list of accounts as a data table that is already present in Salesforce Org. This input component needs data in the collection.

Steps in Screen Flow to show tabular data

  1. Prepare Tabular data
  2. Configure the data table component on the screen
  3. Configure columns that need to show
  4. Test Flow

1. Prepare Tabular data

The Data Table input element need data in tabular format. So you can get data from Salesforce Object or you can create runtime data in the flow as well.

For this post, I am getting account records from the Salesforce Account Object. I am not putting any condition, but we can put any condition to extract data from Org.

Get Data in Flow | Data Table in Screen Flow

We should also select fields that need to retrieve data from Org. This will help in retrieving only the required fields.

Retrieve Data Table in Screen Flow

2. Configure the data table component on the screen

Now add the data table input component on the screen. This component is still in beta version and might be agreement is required if you need to push it into production. Add the source of data for this component as shown in the below image.

Configure Data Table in Screen Flow

Based on your requirements you can also select a selection mode. This mode is required to make the data table single-selectable or multiple records selectable.

3. Configure columns that need to show

Now configure columns that need to show on the data table. We can change the column title as well while configuring it. We can also configure how data will show in each row using Default Text Overflow Mode. We can fix column width or can make auto grow based on field’s value.

Configure Columns in Flow Data Table

Complete Setup

Flow Configuration for Data Table

4. Test Flow

Based on the above configuration data will show which we can put in any record page or application page.

Screen Flow Data Table Demo

Reference:

Flow Screen Input Component: Data Table (Beta)

Related Posts

Extend lightning-datatable with file upload element in Lightning Web Component

Generic DataTable in Lightning Web Component

Verify Phone using Flow HTTP Callout

Top 10 Best Practices for Lightning Flow

Multi Select Lookup in Screen Flow

You may also like

12 comments

Show User Record Access Using Flow - SalesforceCodex December 13, 2022 - 3:59 pm

[…] Data Table in Screen Flow […]

Reply
What is Salesforce Administrator Job Profile? - SalesforceCodex February 6, 2023 - 10:52 am

[…] Data Table in Screen Flow […]

Reply
Searching Text in Flow Data Table - Salesforce Codex May 1, 2023 - 10:23 am

[…] Data Table in Screen Flow […]

Reply
Multi Select Lookup in Screen Flow - SalesforceCodex June 12, 2023 - 4:05 am

[…] Data Table in Screen Flow […]

Reply
Flow Update in Salesforce Winter ’23 - SalesforceCodex June 12, 2023 - 4:08 am

[…] Data Table in Screen Flow […]

Reply
Quick Text in Salesforce - SalesforceCodex June 12, 2023 - 4:08 am

[…] Data Table in Screen Flow […]

Reply
Can Chat GPT Replace Salesforce Developer? - SalesforceCodex June 12, 2023 - 4:13 am

[…] Data Table in Screen Flow […]

Reply
Apex Enhancement in Salesforce Winter ’23 - SalesforceCodex June 12, 2023 - 4:15 am

[…] Data Table in Screen Flow […]

Reply
Difference between WebHook and API Polling - Salesforce Codex June 12, 2023 - 4:18 am

[…] Data Table in Screen Flow […]

Reply
Post Chatter Feed Using FeedItem in Flow - SalesforceCodex June 12, 2023 - 4:19 am

[…] Data Table in Screen Flow […]

Reply
What is Salesforce Genie? - Salesforce Codex June 12, 2023 - 4:21 am

[…] Data Table in Screen Flow […]

Reply
Service Console Productivity Tools? - SalesforceCodex May 20, 2024 - 7:56 am

[…] Data Table in Screen Flow […]

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