How to Grayscale Header Actions Dynamically in Avonni Data Table
Keep the Data Table header buttons grayed out until the user ticks at least one row, with a Boolean formula bound to Disable Actions.
A Reassign button in the table header makes no sense while nothing is ticked. Clicking it opens a second flow with an empty list. Gray the header actions out until the user selects at least one row: a formula counts the selected rows and drives the table's Disable Actions setting.

Before you start
A Data Table with at least one header action. Passing multiple record IDs to another flow builds a Reassign action.
The API name of the Data Table on the screen, shown in the screen's properties when you select the component. This page uses
DealsTable.
Steps
Create the formula
In Flow Builder, open the Toolbox, click New Resource and set:
Resource Type: Formula
API Name:
NoRowsSelectedData Type: Boolean
Formula:
nbSelectedRows is the Data Table output Number of Selected Rows. The formula returns true while no row is ticked, which is when the actions must be disabled. BLANKVALUE treats an empty count as zero. Replace DealsTable with your Data Table's API name.
Bind the formula to Disable Actions
Select the Data Table and click Open Component Builder.
In the Properties tab, open the Header group.
Next to Disable Actions, open the resource picker and select the formula. The picker shows
NoRowsSelectedas No Rows Selected.

Troubleshooting
Related tutorials
Passing multiple record IDs to another flow: the header action this page protects.
Work with Selected Rows: cap the selection and read it in later elements.
Enabling auto-refresh on the Data Table when pressing a button: another header action, the Refresh button.
Last updated
Was this helpful?
