Enabling auto-refresh on the Data Table when pressing a button
Reload the rows of a screen flow Data Table from a Refresh button in its header, or on its own when a dialog flow finishes, without restarting the flow.
A sales manager keeps the open deals screen up during the forecast call while reps update their opportunities. The table read its rows when the screen opened, so it now shows yesterday's amounts. A Refresh button in the table header reads the rows again on demand. The same Refresh Query interaction also runs on its own when a dialog flow finishes, so a reassigned deal shows its new owner at once.

Before you start
The Data Table uses the Query data source. Refresh Query reloads that query, so it is not offered with Manual or Variable. A table fed by a Get Records collection has its own method: see With a Get Records collection.
For the automatic refresh: a row action or button that opens another flow. Creating Row Actions sets one up.
Steps
Add a Refresh button to the header
Select the Data Table on the screen and click Open Component Builder.
In the Properties tab, open the Header group and give the table a Title, for example
Open opportunities.Under Actions, add an item with Label
Refresh, Namerefreshand Icon Nameutility:refresh.
The button appears at the top right of the table, on the title row.
Refresh automatically after a dialog
Open the interaction that runs the other flow (Open Flow Dialog or Open Flow Panel, on a row action, a button or a header action). It has three follow-up lists: On Finish, On Close and On Error.
Under On Finish, add an item with Type Refresh Query. The table reloads as soon as the second flow reaches its end.
Add the same item under On Close if users may close the dialog with the X after saving.

Save and test
Click Done, save the flow and run it with Debug. In another tab, change the amount of one opportunity, then click Refresh: the row shows the new amount, and the screen and its other components stay as they were. Open the dialog from a row, save, and the row updates when the dialog closes.
Refresh other components on the screen
Refresh Query only reloads the Data Table that fires it. To reload every Avonni component with a query on the page (a second table of closed deals, for example), use Refresh All Queries instead:
Flow Scope
Only components in the current flow refresh. Off by default, so every flow on the page refreshes.
Exclude Self
The component that fires the interaction keeps its data.
With a Get Records collection
A table that reads a Get Records collection (Variable data source) shows the records the flow held when the screen opened. Only the flow can fetch them again, so send it back through the Get Records:
Troubleshooting
Related tutorials
Creating Row Actions: the row menu and buttons that open the dialogs worth refreshing after.
Setting up data export: another header action, to take the rows to Excel.
Enabling auto-refresh for queries after the flow dialog ends: the same pattern on other components.
Last updated
Was this helpful?
