Video tutorials
/
Build an Account Contacts list in screen flow using the Avonni Avatar Group component
Screen Flows

Build an Account Contacts list in screen flow using the Avonni Avatar Group component

Show an account's contacts as clickable avatars in a screen flow on the account record page.

Beginner
9:32
Tutorial
Build an Account Contacts list in screen flow using the Avonni Avatar Group component
Play video
Chapters
0:00 Introduction 0:25 What we will build 0:55 Input text variable configuration 1:49 Add a screen element & Avonni Header configuration 2:55 Avonni Avatar Group Data Source configuration 4:00 Avonni Avatar Group customization 4:45 Data Mapping configuration 6:05 Make items clickable 6:23 Item click interaction configuration 7:09 Fine-tuning other properties 8:25 Adding it to a record page 8:56 Final Output
Click a chapter to jump to it
Watch on YouTube

What you will build

Build a visual list of an account's contacts with the Avonni Avatar Group, and place it on the account page. For Salesforce admins who want a better contact view on records.

  • A text input variable for the account record Id
  • An Avonni Header and the Avatar Group data source
  • Data mapping for names, details and images
  • Clickable items with an item click interaction
  • The flow added to the account record page

Transcript

0:00 Introduction

Hello everyone. Do you want to see all the contacts connected to an account inside Salesforce? Maybe you want to see who works at a company right inside the account page. So this video is for you. I will use the Avatar Group and screen flows to display a list of contacts, and it's very easy. Let's dive in. Look at this

0:25 What we will build

account page we have here, and I built a screen flow right there displaying a list of contacts, and for this I'm only using the Avonni Avatar Group. And that's what I'm going to build from scratch with you, to show you how to use the Avonni Avatar Group in a screen flow and display the screen flow on a record page. So let's dive into Flow Builder to build that from scratch. In Flow Builder, let's create a screen flow from

0:55 Input text variable configuration

there. Let's create a new flow, select Screen Flow. First things first, we need to create a special container called a variable. We need to create a variable. So you can think about the variable like a box where you can store information, and this variable will hold the ID of the record, I mean of the account we are looking at. So here, let's create the variable. New resource, variable. Let's enter the name. Input. Data type, it's text. And really make sure, it's important, to check available for input. Why? Because this allows the flow to automatically grab the account ID, or the record ID, and use it in our screen flow. So let's create. Done. Next step,

1:49 Add a screen element & Avonni Header configuration

let's add a screen flow element. Let's enter a label. Remove Header, remove Footer, so we want to make it very clean. The first component I'm looking to drag, it's not the Avatar Group yet. Why? Because I want to have a header. So I will use the Avonni Header at the top to really present, to really display what this component is about. Avonni Header right there. Let's enter an API name. Open the Component Builder. Let's say Contact List for the title. Is join, pull to boundary. And here you can also add an avatar, like an icon, contact. Perfect. And finally, last step on the styling, Style tab, margin at the bottom, margin. Okay, that's it. Now next, the Avonni

2:55 Avonni Avatar Group Data Source configuration

Avatar Group component, to display a list of contacts using avatars. Avatar Group. Open the Component Builder. We need first to configure the data source, where our data is coming from in our Salesforce. Here, data source section. I will create a query. What I'd like to query is the Contact object, because I want to display contacts. But I don't want to display all the contacts from my Salesforce. I need to filter the information, so I will add a condition, and the condition will be filtered by the account ID, where account ID is equal to the current record ID. And that's where the variable comes into play. So here you select map, and you will grab the text variable Reed first. Save. Perfect. That's it for the data configuration. Now I'm able to grab the contact information. Now let's

4:00 Avonni Avatar Group customization

configure the Avatar Group component. We're scrolling up. We can play with the variant, if we want to use circle or square. I use circles. Then you have the size, so you can play with the size of the avatar. Let's say large here. You have layout, so you have stacked, which is like this, grid, which is like this, and here you have all the other contacts. And finally you have list. I will use the list one. Okay, now here I will toggle initials auto formatted. So now it's more clear, more easy to understand. You have the first initial

4:45 Data Mapping configuration

setup. Then let's do the mapping. We need to map the information coming from the fields of the object to the corresponding attribute on the avatar. For example, initials, it's coming from the full name field. Image source: if you'd like to display the avatar as an image, you can select a field. And on my Salesforce, what I did, I created a field which is a URL field, to store the URL of the picture. So picture URL, and you can see the picture on some contacts directly right there on the avatar. And then you can continue, you know, do the mapping for other attributes, like the primary text. You can use full name, it's already there, that's what you can see right there. Secondary text, it's email, but if you want, you can choose another field. So let's say I'd like to display the title, because I have a title field on my object. Let's use the title. And then you have various other attributes, like status, type, position, tooltip, TR, T Series tech text. There is a lot of stuff you can do. Next, I'd like to make the avatar clickable, and for that, at the top I have

6:05 Make items clickable

the item clickable toggle. So when I check this, the items will be clickable. You can see the mouse, now I see the mouse arrow. Perfect. But it's not functional yet. If you'd like to make it functional and automatically create the redirection

6:23 Item click interaction configuration

to the corresponding record page, you need to go on Interactions, and you need to create an interaction on avatar click, right there. So on avatar click, select the type: what you'd like to do when you're clicking on the avatar. You'd like to navigate to a page, navigate to a record page, because you'd like to navigate to the corresponding contact page. API name, object API name, you're selecting Contact. Record ID, it's item name. Action name, view, you'd like to view the page. That's it. So now the avatars are fully functional. They are clickable, and we created the interaction to make sure we are redirecting the users to the corresponding record page. Let's get back to properties, and

7:09 Fine-tuning other properties

then you can fine tune the properties on the Avatar Group, if you'd like to use maybe instead the stack version, always clickable, or the list one. You can really fine tune the look and feel of the avatar. There are a lot of other settings, if you'd like to add filters, display as popover, I MTP list value. But if you're using filters, make sure to add fields as filters. So if you want to filter by department, for example, you will have the department filters at the top. And finally, feel free to play with the style. So if you'd like to fine-tune the styling settings of the Avatar Group, like the header, like the size, the border, and some other styling hooks, you have a lot of settings to customize the look and feel of the avatar. So I'll just adjust my properties. Let's put back the list, I really love the list one. I will just remove the filter. Okay, so now it's done. Let's save the flow. Okay, we just saved the flow. Let's activate the flow. And now the last step, it's really

8:25 Adding it to a record page

to put the flow on the page. So for that, from the record page, we'll edit the page, open the App Builder, and from there I'd like to add the Flow component right there. So now you need to link the flow. Mine, it's demo video Avatar Group. Really, really important: make sure to check this checkbox to make sure the record ID is passed to the variable. It's extremely important. Save. Let's do a test on the account

8:56 Final Output

page. Finally, I can see my Avatar Group list, and let's select or click on a contact. It goes directly to the corresponding contact page. Awesome, I love that. So just in minutes, I was able to build a screen component using the Avonni Avatar Group and the Avonni Header to display a list of contacts in a more visual and appealing way. Let me know if you have any comments in the comment section below. Thank you so much.

Show the full transcript

Questions this video answers

How do I show an account's contacts as avatars in a screen flow?

Add the Avonni Avatar Group to a screen, open the Component Builder and create a query on Contact where Account ID equals the input text variable. Then map Initials and the primary text to Full Name.

How do I make each avatar open its contact record?

Turn on Item clickable, then in Interactions add an On avatar click interaction of type Navigate to record page, object API name Contact, record ID set to the item name, action name View.

How do I display a contact photo in the Avatar Group?

Map Image source to a URL field that stores the picture URL. In the video, it is a custom Picture URL field on Contact.

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