Open a flow in a side panel from an Avonni Data Table, pass the record, and refresh when it closes.

Use the Open Flow Panel interaction to open a flow in a side panel from an Avonni component. For Salesforce admins who want users to see or edit details without leaving the screen.
Hello, and welcome to this new tutorial video about the Open Flow Panel interaction: how to set up and use the Open Flow Panel interaction inside the Avonni components. First, what is the Avonni Open Flow Panel interaction? It's really a new way to ID flows directly in side panels of supported Avonni components. For example, here I have a Data Table displaying a list of opportunities, really based on the account I am on right now. What I did, I added an interaction to open another flow. It's really to open any flow you want, any screen flow you want, inside a component. It's free to open any flow you want right inside the component. For example, here I added this button, and this button will trigger the Open Flow Panel and will open another flow as a side panel. So for example, if I'm clicking on the button, I can see related contact information. The same, I can click into more panels to see and display related information coming from another flow. So that's extremely useful, powerful, and user friendly for the users, if you'd like to give them more tools to adjust settings. For example, here I'm using the Avonni Record Detail, so let's say Finance. Let's save the information from the other flow, let's close the panel, and it will automatically refresh the Data Table. So that's how the Open Flow Panel works. Now let's see how we can configure the Open Flow
Panel. So I am on Flow Builder. This is the flow to display related contacts based on the account I am on right now. So let's open the screen element. Let's go to the Avonni Data Table. That's my Data Table, the way I set up the Data Table. Now what I need to do first, I need to add an action, a row action, and a button action would be better. So I scroll down to the data mapping section, add a new column, and this column will be a button icon. Then let's say Panel for the name, variant brand. Let's type the icon name, so you can pick an icon from the utility or any other icon you want, and save. Okay, the button is created. I can fine tune my button, so let's say a fixed width of 40 pixels right there, so it will maybe be easier to have access to the button. Next, now I need to create an interaction. I need to make sure when users are pressing this button, it will open the panel. So that's where I need to go on Interactions to create an interaction on row action, because it's a row action. So add a new row action, target name, that's the button I just created, Panel. And now for the type, I will select Open Flow Panel. Now I need to specify the flow I'd like to open as a panel. So I will just add the flow. I will just add the demo contact panel. Okay, so next, now I need to pass the input variable, meaning I need to pass the selected record ID on the Data Table, to make sure that the flow I'm looking to open as a panel will display the correct information. So here I will name it the exact same name I'm using on the other flow. The value will be the contact ID. Text. Perfect. Then you have specific panel settings, like position, how you'd like the panel to open, left or right. So let's say right. Outer: if it's present, the panel is displayed outside the Data Table. For now I will leave that unchecked. You can set the size, let's say large. And then you can specify the interaction on finish or on close. What do
you want to do when your users are closing the panel? For example, when they are closing the panel, I'd like to trigger the Refresh All Queries interaction. Why? Because I also want to refresh not only the flow I'm opening but also the Data Table, to really add the latest information. Save, and I'm done. I just created the Open Flow Panel interaction, linked that to the flow I'd like to open. Make sure to pass the input variable. So now, if you'd like, we can dive
deep into the other flow I'm looking to open, the demo contact panel. It's really, what I did first, I just created my input variable right there. It's a record on the contact, because I'd like to display other related information from the selected contact. And then on the screen element, I have Header and the Avonni Record Detail to display related information, and I added the upsert interaction to make sure information is saved correctly. So finally, now if you go back right there, we can live test this, and it's working as expected. Now I'm able to trigger any other flow inside a panel, which is, I think, more convenient. It's depending on the use case, of course, but more convenient for users, because sometimes you don't want to display information coming from another flow inside a modal box. Why not have all the information right at the same place? So that's what the Open Flow Panel interaction is doing. Let me know if you have any questions. Happy to answer those questions in the comment section below. Thank you. Bye-bye.
In the Avonni Data Table, add a Button Icon column, then a Row Action interaction with that button as target and type Open Flow Panel, and select the screen flow to open.
In the Open Flow Panel interaction, add an input variable named exactly like the variable in the opened flow, with the row's record ID as its value.
Set the interaction on close to Refresh All Queries.
Browse the whole library, filtered by where it runs and what you want to build.
All video tutorials