Set up the Avonni Calendar in a screen flow: data source, mappings, time spans, actions and style.

A full walkthrough of the Avonni Calendar in a screen flow, from the data source to the style. For Salesforce admins who want to show events and resources in a calendar view.
Hello everyone, and welcome to our new video tutorial. Today I'm excited to show you the powerful capabilities of the Avonni Calendar component in Salesforce. We will look at the fully functional Calendar displaying a list of resources, and in this case I will display a list of bikes and their associated events, like bike rentals. So here on the screen you can see the Avonni Calendar in action, and as you can see, it's seamlessly integrated within Salesforce, displaying a list of resources and events. For example, each bike in our inventory is a booking gr tool. So let's dive into how functional this Calendar component is. So let's dive on how this Calendar is fully functional. We have various things that are fully functional on this Calendar. For example, if we hover an event, you will see detail information, and you can also see button actions on the event, and these buttons are completely functional. When you click on Edit, you can edit the rental. When you click on View, you can go directly on the View page. We also added this action button, New Rental. So basically this action button on the Header is launching another flow to book a rental that would be automatically displayed on the Calendar. The Calendar is extremely versatile, meaning that it's easy to switch from the timeline view to the calendar view and also to the agenda view. So you have the flexibility to select the view you'd like to display on the Calendar. So now that you've seen the Avonni Calendar in action, let's take a step back and build this from the ground up. So here I'm
going to recreate this example using Flow Builder and the Avonni Flow Screen Components for the Calendar. So first, let's start by creating a new flow, a new screen flow, right there. Before diving into the screen element with the Avonni Calendar, we need first to set up the Get Records information to feed information, or to look for information, on our Salesforce. So here I'm going to create a Get Records collection to search information regarding the bikes. So, Get Bikes information. I want to use the Bike object, custom object. I don't want to filter by anything, so I don't have any filter requirement. So, Get Bikes. And now let's create another Get Records to fetch the rentals. So, Get Rentals, Rental. Same, no condition, show me all rentals. Perfect. So now we can dive into the screen element. Let's add the screen element, add this and this to make it extremely custom, and now we need to drag
the Avonni Calendar component. So like we did for each of the Avonni components, you have access to the Component Builder to fully customize the Calendar. Open Component Builder. So let's start by focusing on and configuring the most crucial part of the Avonni Calendar.
It's the data source. This is where we feed here the data we need to bring into the Calendar. So think about the data source as your backbone for the Calendar setup. You can add the data source manually by entering resources and events manually, or you can use variables, and that's what I'm going to use, because I already have set up my variables using my Get Records collection. So first we need to talk about resources and events. So resources in the Avonni Calendar: the resources are like key elements involved in our events. For our bike example, those resources are the bikes themselves. So that's really important, to understand the meaning of resources and events. So here we select Get Bikes for the resource collection, and now events. So the event, it's really activities we need to track on the Calendar. In our case it's the bike rentals. Events are really extremely important because this is what your users will interact with. So this could be meetings, could be project deadlines, could be cases, could be, for example, in our case, rentals. So you will select the Get Records collection, Get Rentals. So to continue the
configuration of the Avonni Calendar, we need to do the data mapping, and this is extremely important because this is basically where we can link data coming from the Get Records collection to the data we'd like to display on the Calendar. So for example, resources: regarding the label, what fields I want to select to display the label. For example, resources label, Name, would be the bike name. Name, it's automatically completed, it's the unique record ID for the resource. If needed, we can add the avatar source, so if you want to display an image on the resource like I have on my example, you can select the field here. It's the IM image, it's a URL field. So that's for the resources. Now events, I would do the exact same steps for events. For example, here the event will be the contact name. The name will be the name of the contact that rents a bike. And as we dive into data mapping, there is really one attribute that is extremely important, it's this one, it's the resource name. So basically the resource name in the event section, it's more than just a label. It's really the key about linking the event to the corresponding resource. And for my example, the resource name will be Bike__c, so the lookup field of the bike, because each event is linked to a bike. So each event is linked to a resource, and that's why it's extremely important to set up that attribute, otherwise the Calendar won't work properly. Then you can configure the form, so it can be start date, in my case, to its end date. If you have all-day events, you can have an attribute for that. Then you have color and theme, and you can get a preview here on this canvas if you want. You can also select theme, so you can select variable, manual. For the theme, it's really the way you'd like to display the event, like lines wed H default. It's extremely versatile, highly customizable. So here we just set up the mapping section. The Calendar is almost ready, but you have access to more settings to
customize the Calendar to fit your needs. You can, for example, select the time span. If you want to display week, you can display per week. Then you have Header, if you want to customize the Header section, "demo calendar", that you can see here. You can add an avatar or an icon if you want. Let's pick this one. Action: so that's the action button you'd like to add here on the Header. I don't know if you remember my first example live on Salesforce, I have like a New Rental action. So that's where I'm creating this button, New Rental. But here I'm just creating the button. Next step will be to make that button functional for the users. You have other settings like available times. If you want to add specific days, if you want to add specific months, that's possible. The same for time frame. Let's say you only want to display daytime, so you can say, oh, I only want to display on the time frame from 8 a.m. to 6:00 p.m. That's the syntax you need to use. It's using the ISO formatting time strings to really adapt the time frame you'd like to display. As you can see, now I can only see time from 8 to 6, so if it's before 8 or after 6, it won't be displayed on the Calendar. Context menu action, that's
where you will create actions on events, for example. So let's say you'd like to have an Edit action to edit an event. So when you click here, add the Edit action, you can see now I have my Edit button. The same, you can have the View button. You can have actions on up this spot. Then you have event display, so it's
really more UI customization for the theme, the palette of colors. You can select the palette of colors if you want to customize that. Popover fields: if you want to add extra fields right there, that's where the popover fields come into play. You have advanced options for custom pet as well. Then you have filtering options, if you want to filter by specific fields. You can also hide resources filter, so you won't have access to the filters right there. Date time picker as well, so depending on how you customize the calendar view, you can have the date time picker at the top or left panel, for example. Popover, popover is this one. Search: let's say you'd like to make your items searchable, you can have a search engine. Just check that, and all the events will be available through the search engine. So now regarding this button, you can also fully customize it. I remember to show you that right there, it's the selected display. You can select what you'd like to display by default. If you want to display timeline view, agenda view, you can select the selected display by default. Advanced options: you have the ability to add specific displays if needed. If you only want to have the agenda available, you can add calendar and timeline view. So now that's for the properties panel. Now let's focus on actions. Remember, we have actions, this New Rental button, and we also have actions here, Edit and View. How can we make those actions functional? And that's where the Interactions tab comes into play. So when
you click on Interactions, you will be able to define the interaction when your users are clicking on the button, for example New Rental. It's a toolbar action, so you click on Add toolbar, you select the target name, and now you can select the type of interaction you'd like to create. For example, New Rental: I want to launch another flow, because I already created my flow for users to add new rentals. So here, select the type, you will select Open Flow Dialog, and from there you just need to type the flow you'd like to open. If needed, you can even pass input variables. For that case, no, I don't need that. And then you have interaction on finish. So let's say users are finishing the flow that is opening by clicking on the New Rental button, you can say, oh, I'd like to have on finish show toast message. Let's say, "Thank you, we will reach you shortly." And then variant success: you want to display this message in green, so you can select the variant. Close, and then you can save that. So here, now when you test that on Salesforce or in the debug mode, you will be able to click on New Rental to see the new modal box. So let's say you want to create the action on the Edit button. You will click on Add event, select target name Edit. Type of interaction: it's not Open Flow Dialog here, it's Navigate. Where you'd like to navigate: you'd like to navigate to the record page, to be able to edit that record page. Now which object? I have an object, custom object, Rental. Which record? Event name, that's the current record ID. And then action name, I want users to edit this. Save. So it's simple. You can do the same process but using the View target name, and it's the same. Navigate to the record page, which object is the Rental object, event name, and then instead of Edit, View, and you're done. So here, using the Interactions panel, I just set up three interactions on the action, add action, and then on the event, then. Perfect. If needed, you still have
access to the Style panel, if you want to customize, let's say, the background color of the Header. That's possible, you can customize this if you want, and then you just set up the Calendar. That's basically how it works for the basics of the Avonni Calendar, how you can easily customize the Avonni Calendar component in your screen flow, which is extremely versatile. So a quick
So a quick recap: the main things we need to take care about, it's really customizing the data source, linking that data source using the Get Records collection for resources and for events, and don't forget to fill out properly the resource name attribute. That's where it's linking the event to the corresponding resources, otherwise it won't work properly. So that's basically it for the Avonni Calendar component. I hope you enjoyed this video. Let me know in the comment section below if you have any questions or if you're stuck somewhere, we are here to assist you. Thank you so much, bye-bye.
In the event data mappings, set the Resource Name attribute to the lookup field that points to the resource (here Bike__c on the rental). Without it, the Calendar won't work properly.
Create the button in the Header action, then in the Interactions tab add a toolbar interaction on it with the type Open Flow Dialog and pick the flow. You can add an on finish Show toast message.
Set the time frame with ISO time strings, for example from 8 AM to 6 PM. Times before 8 or after 6 are then not displayed.
Browse the whole library, filtered by where it runs and what you want to build.
All video tutorials