Action buttons, images, progress bars, lookup editing and dynamic header actions in an Avonni Data Table.

Seven tips for the Avonni Data Table in screen flows, from action buttons to the final look. For Salesforce admins who already use the table and want more from it.
Hello everyone and welcome to the Avonni YouTube channel. Today we are diving into the Avonni Data Table, and in this video I will share seven tips and tricks to help you get the most of the Avonni Data Table. So whether you're a beginner or an experienced user, these insights will enhance your experience with the Avonni Data Table. So let's jump right in and discover how to maximize the potential of the Avonni Data Table. So, moving to our first tip, I want
to add on this data table, I want to add button actions. For example, I want to add a button completely at the end of the data table to launch an interaction, so to launch another flow or to launch another interaction. Let me show you how you can add a button directly on the data table. So let's go directly on the flow. So this is my screen flow with the data table inside. Let's open the Component Builder. So from there I have my data table, and what I'd like to do, I'd like to add a new column to add an action button. So I will go straight completely down, data mapping, add column, and I will select button icon. You need to name this button icon. That's extremely important, because that's what you would use on the interaction panel to launch an interaction directly on this button. So let's select the variant of this button, let's say border. Let's select an icon, change owner. Okay, save. So now the button is added right there. You can still fine-tune how the button is added, so I will click on the column once again, advanced option, and what I would do, I would set a fixed width of 40 pixels. So now it's way better, completely on the bottom, on the end side of the data table. Now I'm able to go on interaction, and on row action I'm able to create the interaction. So for example, add row action, target name. I have the target name, the change owner name of the button icon, and from there I'm able to trigger any interaction available. For example, I will open a flow dialog, let's say change owner. Let's pass an input variable, account ID, the value is account ID. Close. So I'm passing this input variable to the other flow, so I know which account I need to update, and that's pretty much done. So now let's click done and let's do a live test to see if I'm able to click on the button. Let's refresh the data table. Okay, now the button is there. Perfect, it works perfectly fine. I'm able to click on this button to launch another flow. It's passing the input variable to exactly know on which record I am right now. So that's for the first tip, how you can add button icons directly on the data table. Let's get back to the Flow Builder with the second tip.
Let's open the Component Builder. Now what I'd like to do, I'd like to display images. I'd like to display logos for the accounts. So once again I scroll down, add column, and the source field. What I did, I created a formula, not a formula, a custom field, URL field, to add the logo URL for each record. So I select the source field, Logo, then the type, you will select Avatar, and then from there you can define the avatar attributes. What you need to do is, for the fallback icon name, you need to map that to the field name Logo. So on my use case, as I said, I created a custom field, custom URL field, to store the URL logo, and from there I can set the variant square, size medium, and save. So now I have the logo. I can move the column completely here. I can click custom label, I don't want to display a label at the top, and advanced option, let's set a fixed width for the column. Perfect. So now I'm able to display images directly on the data table. That's for the second tip.
The third tip, now how you can really enhance data presentation on the data table. For example, here I have onboarding progress. That's a percent field. You can click on that field to change how it's displayed. For example, it's a percent field, that's the standard field from Salesforce, but I can change to progress bar to automatically display the percent field using a progress bar. So here you can say thickness small, you can change the theme if you want, the variant as well, show value, save. And now you can see the progress bar instead of just numbers with a percent. So that's for the other tip I'd like to show you, how you can enhance data presentation using progress bar. And as you can see right there, you have various types of data presentation: progress bar, progress circle, progress ring, rating, slider. There is a lot of things you can explore to enhance the data presentation on the data table. Next tip, how you can add a lookup
field and make that lookup field editable. So I will just drag the bike field right there. It's a lookup field. Select the column, lookup, linkify that, and you can make the lookup field editable. Save. So users will be able to change the lookup field directly from there. That's for the other tip. Next one.
So that's really an interesting one. Here on the header of the data table I have this launch process action button, but I want to make, or I want to disable this button if no records are selected, meaning that I will only be able to interact or make this button clickable if at least one item is selected on the data table. And to achieve that, what I need to do first, I need to create a new resource, and that's a formula resource type, it's Boolean, and I will paste the formula, which is like this. It's a new formula. That's the name of the data table API name I'm using on the flow, and then I'm using the number selected attribute. So I'm saying if the number selected attribute of the data table is more than zero, it's true, otherwise it's false. So let's say disable header action. Okay, that's my formula. Now I can open the data table once again, Component Builder, and then I will expand the header section, and on the header section you have disable action attribute. But instead of disabling that manually, I'd like to dynamically disable the action based on the formula I just created. Disable header action. Done. So now let's save the flow and
activate the flow again to see changes. Okay, perfect. As you can see, first we have new updates on the data table. The lookup field is editable and you can also select different bikes, so that's working fine. You can save information. Okay, we can see the images in action right there. So now we'd like to test also the button action. Right now it's disabled by default, because I don't have any row selected. Let's select a row. Oh, now yes, my formula, Boolean formula, is working fine. I can launch the process, which is launching another flow. So that's extremely useful or powerful, because you can dynamically disable action based on the criteria you have on the formula. So that's really a quick example. Now the last two tips on this
video regarding the Avonni Data Table, it's more about, you know, enhancing the look and feel of the data table. First, as you can see, I have like borders around the data table. It's like white border, it's not well integrated. And also I want to activate what we call the infinite scrolling. Right now it's fine, but it's scrolling completely on the page. It's not very efficient regarding the user experience. So let's get back to the screen element again, open the Component Builder, and the first one is to remove the margin we have here around the data table, the unnecessary margin. So here you will see pull to boundary top, pull to boundary left and right. So now the data table is really flush with the border, and you can do the same with the bottom. Now if you'd like to activate the infinite scrolling, it's only one click away. Activate this button and you're done. Let's save that and let's see the difference now regarding the look and feel. So now we have a way more integrated data table on the page, and infinite scrolling, you see the difference. It's not scrolling completely on the bottom of the page, I'm still staying on the data table, which is extremely great, and I love that regarding the user experience. Now I can see the logos, I have access to button action where I can launch another flow, I have a header action that is disabled by default using a dynamic formula, so if I'm selecting an item I'm able to launch that flow. You're also able to display data types using progress bar and various other data types available on the data table, and also being able to edit lookup fields as well. So that's really for the few seven tips and tricks I'd like to share with you today regarding the Avonni Data Table. There is a lot more to explore, so if you have any ideas or if you'd like to learn more about a new video you'd like to watch, let us know in the comment section below. Thank you so much and have a great day.
In the Avonni Data Table Component Builder, add a column of type Button icon and name it. Then in Interactions, Add row action with that name as the target name, for example to Open Flow Dialog with an input variable.
Create a Boolean formula resource that checks whether the Data Table's number selected attribute is more than zero, then set the Header section's disable action attribute to that formula.
Store the image URL in a custom URL field, add a column with that field as the source and the type Avatar, and map the fallback icon name to the same field.
Browse the whole library, filtered by where it runs and what you want to build.
All video tutorials