Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Learn the Basics

Put an Avonni Data Table on a flow screen, feed it your open deals, label the columns, and use the rows the user ticks in the next flow element.

A sales manager opens a screen flow, sees every open opportunity in one table, ticks the deals that need a call this week, and clicks Next. The flow then writes "Call this week" on each ticked deal. This page builds that flow from an empty canvas. Most Data Table flows reuse the same pattern.

A flow screen with the Deals to review table: deal names as links, stage badges, amounts and close dates, two rows ticked and the line 2 items selected
The finished screen: open deals, two of them ticked for a call this week.

Before you start

  • The Avonni Flow Components package is installed and your user has its permission set.

  • You can create a screen flow in Flow Builder.

  • A few open opportunities exist in the org, so the table has something to show.

Steps

1

Get the records in the flow

The table displays a collection your flow already holds. Add a Get Records element named Get Open Deals:

  • Object: Opportunity

  • Filter: IsClosed equals False

  • How Many Records to Store: All records

  • How to Store Record Data: choose the fields to keep (Name, Account ID, StageName, Amount, CloseDate) and store them in a new record collection variable, OpenDeals

If you would rather let the table fetch its own records, set its data source to Query in the Properties tab: Group rows and show totals builds one.

2

Add the Data Table to a screen

  1. Add a Screen element after Get Open Deals.

  2. In the screen's Components panel, search for Avonni and drag Avonni Data Table onto the screen.

  3. Set its API Name to DealsTable. Every output you use later starts with this name.

  4. Click Open Component Builder.

3

Point the table at your deals

A new Data Table starts on the Variable data source, with the Fields tab open on the left.

  1. Set Data Collection to OpenDeals. The field list below it now shows the Opportunity fields.

  2. Drag Name, StageName, Amount and CloseDate from the list onto the table preview. Each field becomes a column.

The preview shows the layout without your records. The rows arrive when the flow runs.

The table tells rows apart with its Key Field (Properties > Data Mappings > Advanced Options), the record Id unless you change it. Leave it on Id: the selection outputs and the row actions return that value.

The Edit Data Table Component window: Data Collection set to Open Deals in the Fields tab, the column preview, and the Properties tab
Data Collection points the table at the flow's record collection.
4

Label and shape the columns

  • To rename a column, hover its header and click the pencil (Edit Column Label). Use the words your users say: Deal, Stage, Amount, Close date.

  • Each header also has a chevron that opens the column menu. Type Attributes sets how the values are drawn: set the Stage column's Type to Badge, and turn on Linkify on the Deal column so the name opens the opportunity (details).

  • Remove Column in the same menu deletes a column you no longer want.

In the Properties tab on the right, open the Header group and give the table a Title (Deals to review). Then turn on Show Number of Items Selected so the user sees how many rows are ticked. Click Done, then Done again to close the screen.

5

Use the ticked rows after the screen

The Data Table hands the selection back to the flow as outputs of DealsTable. The two you need most:

  • Selected Rows ({!DealsTable.selectedRows}): the ticked opportunities, as a record collection.

  • Number of Selected Rows ({!DealsTable.nbSelectedRows}): how many were ticked.

After the screen:

  1. Add a Decision Any deal picked?: outcome Yes when {!DealsTable.nbSelectedRows} is greater than 0. The default outcome ends the flow.

  2. On Yes, add a Loop over {!DealsTable.selectedRows}.

  3. Inside the loop, an Assignment: set the loop variable's NextStep to Call this week, then Add the loop variable to a new record collection, DealsToUpdate.

  4. After the loop, an Update Records on DealsToUpdate.

All the selection outputs, and how to limit or require a selection, are in Work with Selected Rows.

6

Save and test

Save the flow and click Debug. The screen shows your open deals with the Deal column as links and the Stage column as badges. Tick two rows: the table shows "2 items selected". Click Next, then open the two opportunities: their Next Step field reads Call this week.

Prefer video?

This walkthrough builds a Data Table in a screen flow from scratch. It was recorded on an earlier version of the Component Builder, so a few panels look different today; the steps above follow the current screens.

Troubleshooting

The table is empty when the flow runs

The collection is empty at that screen. Check that Get Open Deals runs before the screen, that its filter matches records, and that Data Collection points at OpenDeals. The preview in the Component Builder never shows records, so an empty preview is normal.

A field I need is not in the field list

The list shows the fields of the collection's object. If a field is missing at runtime (the column stays blank), add it to the fields stored by the Get Records element.

Nothing is updated after the screen

The user ticked no row, or the Loop reads another output. Loop over {!DealsTable.selectedRows}. To stop the user from moving on without a selection, turn on Required (see Work with Selected Rows).

Last updated

Was this helpful?