Video tutorials
/
Auto-Refresh Avonni Data Table when using Open Flow Dialog interaction in your screen flow
Screen Flows

Auto-Refresh Avonni Data Table when using Open Flow Dialog interaction in your screen flow

Refresh an Avonni Data Table automatically after a flow opened with Open Flow Dialog finishes.

Intermediate
4:05
Tips & tricks
Auto-Refresh Avonni Data Table when using Open Flow Dialog interaction in your screen flow
Play video
Chapters
0:00 Introduction & Final Result 1:47 Avonni Data Table interaction configuration
Click a chapter to jump to it
Watch on YouTube

What you will build

Make an Avonni Data Table refresh by itself after a flow opened in a dialog changes records. For Salesforce admins who use the Open Flow Dialog interaction in screen flows.

  • The final result: a table that shows changes made in the dialog
  • The Open Flow Dialog interaction on the Avonni Data Table
  • The settings that refresh the table when the dialog flow ends

Transcript

0:00 Introduction & Final Result

Hi everyone, and welcome to this tutorial about the Avonni Data Table component for screen flows. Today we are diving into how to refresh your data in real time when adding new data through another flow, through the Open Flow Dialog interaction. So this is really great if you want to keep your Salesforce data up to date and the Salesforce user experience. So whether you're new to Salesforce or an experienced user, this guide is designed to be straightforward to follow. So let's get started and unlock the full potential of the Avonni Data Table with the Open Flow Dialog interaction. Let me show you what I'm talking about. So here I have this example using the Avonni Data Table to display a list of rentals, and on this Data Table I added an action, a Header action, and this action is calling, or opening, another flow. So let's click on Open New Rental. That's my other flow, opened from this action. So here you can select a location, let's select the bike to add a new rental, let's select the contact, Next. And when I click on Confirm, you will see on the back end, on the Data Table, you will see a confirmation message, and then the data is automatically added to the Data Table in the background, without any user intervention. So that's what I'm talking about when adding new data using the Open Flow Dialog and the auto refresh on the Data Table. This is my flow. Let's go on the

1:47 Avonni Data Table interaction configuration

screen element and let's select the Avonni Data Table, the one I want to launch another flow from. Let's open the Component Builder. So from there you will see the New Rental button. So that's easy: go on the Interactions tab and create an interaction when users press this button. So Add Header action, let's select the target name, which is the button New Rental. Type, it's Open Flow Dialog. Let's select the flow I want to open. If needed, you can pass input variables. Now for my example I don't need to use input variables here, because I'm adding new data. If you want, you can have modal Header, accessible description, set a size for the modal. Let's select now interaction on finish. Basically, that's the interaction I'd like to be triggered when the Open Flow Dialog is finished. So here I will add an item, and let's select the first interaction, which is Refresh query. And that's why it's extremely important, on the Data Table you're using here to launch the other flow, to make sure that this Data Table is set up on the query data source. So let's add another interaction, show toast message, and let's say "Thank you", variant success. Close, save. Let's get back to properties. Just want to mention one important detail: to make sure that this is working fine, you need to make sure that this Data Table is set up on the query data source, otherwise you won't have the option to Refresh query on the interaction. So that's basically how to set up an auto refresh when the Open Flow Dialog is closed, to automatically refresh the Data Table in the background, which is really great for the user experience, because the data is automatically added to the Data Table. I hope you enjoyed this video. Let me know if you have any question or comment in the comment section below, and don't forget to subscribe.

Show the full transcript

Questions this video answers

How do I refresh an Avonni Data Table after a flow opened from it closes?

In the Data Table interaction that uses Open Flow Dialog, add a Refresh query interaction under On finish. The table then reloads its data in the background when the other flow is finished.

Why is Refresh query missing from my Data Table interactions?

Refresh query is only available when the Data Table is set up on the query data source. Switch the table's data source to a query to get the option.

How do I open another screen flow from a header button on the Avonni Data Table?

In the Component Builder, go to the Interactions tab, choose Add Header action, pick the button as the target name and set the type to Open Flow Dialog with the flow you want to open.

See it as a use case
No items found.
Build it in your org

Free in sandboxes, 10 free production licenses.

Start free
Keep going

Related tutorials

Find your next tutorial

Browse the whole library, filtered by where it runs and what you want to build.

All video tutorials