LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Guide
    • Learn the Basics
    • Installation & Licenses management
    • Flow vs. Dynamic Components
    • Integrating with Experience Cloud
  • Tutorials
    • Videos
    • Projects Tutorials
    • Components Tutorials
      • Alert
        • Create a custom branding alert
        • Create an error alert dismissible
      • Avatar
        • Create an avatar with actions
        • Create an avatar with details
      • Avatar Group
        • Display a list of contacts related to an account
        • Display a list of sharing users related to the record
      • Barcode
        • Generating and Displaying Barcodes for Product Codes
      • Biometrics
        • 101 Tutorial
      • Button
        • Customizing Flow Navigation Buttons
        • How to Add a "Cancel and Close" Button
        • How to Open Flows from Buttons
      • Button Groups
        • Identifying Clicked Buttons
      • Button Menu
        • How to change dynamically Avonni Button Menu Icons
      • Calendar
        • Calendar 101 Tutorial
        • How to Connect Multiple Data Sources to the Avonni Calendar
        • How to Customize Time Spans
        • How to Customize the Right-Click Menu
        • How to Add an Edit Action to Events
        • How to Add a New Event Button to the Avonni Calendar Header
        • How to Create Events by Dragging in the Avonni Calendar
        • How to Reschedule Events with Drag and Drop
        • How to Color-Code Calendar Entries in the Avonni Calendar
        • Using a variable Data Source
        • Using a Query Data Source
      • Carousel
        • Build a Related Products Carousel
      • Combobox
        • Implement Dependent Picklists in Comboboxes
        • How to Dynamically Enable/Disable Dependent Picklists
        • Using Multi-Select Comboboxes with Reactive Formulas
      • CSV Parser
        • 101 Tutorial
      • Data Table
        • Adding Filters
        • How to add Images onthe Data Table
        • Creating Row Actions
        • Displaying a Record as a QR Code
        • Displaying Record Name field as a link
        • Learn the Basics
        • Making a field editable
        • Setting Up Data Export
        • Tips and Tricks
          • Activate infinite scrolling
          • Creating an action from a button or a link
          • Customizing the Badge Color using a formula
          • How to Grayscale Header Actions Dynamically in Avonni Data Table
          • How to Conditionally Color Cells
          • Enabling auto-refresh on the Data Table when pressing a button
          • Handling formula text field
          • How to set column visibity
          • Passing multiple record IDs to another flow
          • Data Table Editor
      • Date Picker
        • Display a date picker with Marked Dates from a Get Records
      • Date Time Picker
        • How to create Collection Variables for StartDateTime and EndDateTime
        • How to Block Out Times
      • Delay Interaction
        • Creating a Confetti Celebration on the Final Screen
        • Launch a flow dialog without a screen
      • Dual Listbox
        • Display contacts with custom icons
        • Accounts list group by industry
      • Expandable Section
        • How to add components into an expandable section
      • Header
        • Building Engaging Card Headers
        • Crafting a Profile Header
        • Adding Action Buttons to Headers
        • Adding a Background Image to Your Header
      • Input Pen
        • Add the custom Toolbar
        • How to Store Input Pen Drawings as Attachments in Salesforce
      • Kanban
        • 📹Introduction
      • List
        • Create a grid list with images
        • Create a sortable list
        • How to Reorder Items and Update Records
        • Vertical List with Actions
      • Navigation
      • Map
        • Customize the Map Marker
        • Visualizing Account Information on a Map
      • Metric
        • 📹Introduction
      • Microphone
        • Save the Microphone recording file as an attached on a record
      • Progress Indicator
        • Creating a Universal Dynamic Progress Step Collection
        • How to Change the Appearance of Your Progress Indicator using a variable
        • Error Handling
      • QR Code
        • Generate a QR Code from a record field
      • Record Detail
        • Using the Record Detail with Reactive Screens
      • Scoped Notification
        • Display message based on a value
      • Text Area
        • TextArea issue with max length when clicking on the next button
      • Tree
        • Build a Tree View with Dynamic Record Details
      • Timeline
        • Assigning multiple source collection to the Timeline
        • Customizing Date Format in the Timeline Component using Luxon
        • Create a horizontal activity timeline
        • Display Tasks
        • Perform actions on selected tasks
      • Vertical Visual Picker
        • Adding sub-items
        • Display a list of online contacts
    • Interactions
      • Enabling auto-refresh for queries after the Flow Dialog ends
      • Creating a Confetti Celebration on the final screen
      • How to create an interaction to navigate to an object
      • How to create an interaction to a record page
      • How to create an interaction to open another flow
      • How to pass an Input Variable from One Flow to Another
      • How to setup an Open Flow Panel interaction
    • Reactive Query Tutorials
      • How to make Data Tables Reactive
      • Build a reactive Data Table Using Dependent Picklists
      • Building a Dynamic Metrics Dashboard with the Data Table
      • How to build a reactive 'Quarterly Opportunity Tracker' component
      • How to Create a Combobox-Filtered Data Table
      • Create a Dynamically Linked Account-Contact View
      • Troubleshooting
    • Tips and Tricks
      • Copy / Paste a component settings
      • Create a link to the record using the href attribute
      • Create a variable and use it in a component property
      • Data Table
      • Hide Standard Header and Footer in a flow
      • How to pass your current RecordID in your screen flow
    • Platform Events
      • Configuration tutorial
  • Flow Components
    • Explore All Components
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Barcode
    • Barcode Scanner
    • Biometrics
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Calendar
    • Carousel
    • Chart
    • Chip Container
    • Combobox
    • Color Picker
    • CSV Parser
    • Date Picker
    • Data Table
    • Date Time Picker
    • Delay Interaction
    • Document Scanner
    • Dual Listbox
    • Expandable Section
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Hero Banner
    • Icon Picker
    • Image
    • Input Choice Set
    • Input Choice Set Grid
    • Input Counter
    • Input Date Range
    • Input Pen
    • Illustration
    • Interaction service
    • Kanban
    • List
    • Map
    • Metric
    • Microphone
    • Navigation
    • NFC Scanner
    • Pill Container
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Progress Popover
    • QR Code
    • Rating
    • Record Detail
    • Scoped Notification
    • Separator
    • Slider
    • Tabs
    • Text Area
    • Timeline
    • Tree
    • User Location
    • Vertical Visual Picker
    • Visual Picker
    • Visual Picker Link
    • Video Player
    • Welcome Mat
  • Component Builder
    • Overview
    • Properties Pane
    • Interactions Pane
      • Copy Records
      • Download
      • Export To
      • Fire Confetti
      • Flow Navigation
      • Navigate
      • Show Toast
      • Open Alert Modal
      • Open Confirm
      • Open Flow Dialog
      • Open Flow Panel
      • Update Records
      • Refresh Query
      • Refresh All Queries
      • Open Quick Action
    • Style Pane
    • Component Templates
    • Layout and Customization
      • Alignment controls
      • Copy / Paste component settings
      • Margin / Padding
      • Pull To Boundary
      • Undo / Redo
  • Data Sources
    • Understanding Data Sources
    • Manual
    • Variable
    • Query
    • Query VS Variable
    • Picklist
  • Actions
    • Overview
    • Data Manipulation and Transformation
      • Convert Lead
      • Create file
      • Split Text to Text Collection
      • SObject Collection Math
      • SObject Collection Join
      • Get Record from SObject Collection
      • SObject Collection to Activity Timeline Items
      • SObject Collection to Calendar Marked Date Collection
      • SObject Collection to Scheduler Events
      • SObject Collection to Text Collection
    • Data Conversion and Formatting
      • Text Collection Get Value
      • Get Value from String Collection
      • Number Collection Get Value
      • Join Text Collection
      • Format Text in SObject Collection
      • Format Text Collection
      • Text Collection to Combobox Options
      • Text Collection to Dual Listbox Options
      • Text Collection to Progress Indicator Steps
    • UI & Navigation
      • New Avatar Action Collection
      • New Button Menu Item Collection
      • New Carousel Item Collection
      • New Combobox Option Collection
      • New Dual Listbox Option Collection
      • New Header Action Collection
      • New Header Avatar Action Collection
      • New List Action Collection
      • New Navigation Item Collection
      • New Progress Indicator Step Collection
      • New Progress Popover Step Collection
      • New Slider Custom Label Collection
  • Help
    • Performance Guide
    • How do I contact support?
    • How do I report Bugs?
    • Troubleshooting
    • Release Process
  • Miscellaneous
    • Live use cases examples
    • Release Notes
    • Salesforce Flow Limit
    • Security
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Introduction
  • Purpose
  • Key Features
  • Step-by-Step Implementation:
  • Step 1: Create a New Screen Flow
  • Step 2: Add a Screen Element
  • Step 3: Configure the Screen Element
  • Step 4: Add a Section Element
  • Step 5: Drag the Avonni Data Table
  • Step 6: Configure the Avonni Data Table
  • Step 7: Configure the right-side section
  • Step 8: Configure Reactivity
  • Step 9: save and test your flow

Was this helpful?

  1. Tutorials
  2. Projects

Account Management

Last updated 6 months ago

Was this helpful?

Introduction

Welcome to our detailed tutorial, where we guide you through creating a dynamic and reactive Account Management Component using Avonni Components in a screen flow. This tutorial is designed for Salesforce administrators and technical architects looking to enhance their user interface with efficient, real-time data interaction.

Purpose

The primary objective of this tutorial is to demonstrate how to build an Account Management Component that showcases a list of accounts using the . This component's unique feature is its reactivity—selecting an account from the Avonni Data Table instantly displays related information about that account in a separate interface section. This two-section layout ensures a seamless and intuitive user experience.

Key Features

  • Reactive Data Display: Learn how to use reactivity, a powerful feature of the Flow Builder, to create components that respond in real time to user interactions.

  • Two-Section Layout: Understand the structure of the component, with one section dedicated to displaying the account list and the other for showing detailed information on the selected account.

  • Enhancing with Avonni Components: Discover how to use various Avonni Components to enrich the right panel with real-time information, further leveraging the reactivity feature.

To enable Reactive Screens by default, verify that your screen flow uses at least version v59 of the Flow API. This version ensures the necessary support for dynamic component behavior.

Step-by-Step Implementation:

Step 1: Create a New Screen Flow

Create a screen flow in the Salesforce setup.


Step 2: Add a Screen Element


Step 3: Configure the Screen Element

In this step, we focus on customizing the screen element. Begin by naming the label of the screen element for clear identification. Then, in the "Configure Header" section, uncheck "Show Header" to give our component a custom Lightning Web Component (LWC) appearance despite it being a screen flow. Apply the same principle in the "Configure Footer" section by unchecking "Show Footer."

These adjustments ensure a cleaner, more integrated user interface, enhancing the overall user experience.


Step 4: Add a Section Element

In this step, introduce a section element into the screen flow. Create a two-column layout within this section: set the first column to occupy 8 out of 12 parts of the width and the second column to take up the remaining 4 out of 12 parts. This distribution ensures a balanced and visually appealing layout for your component's content.


Step 5: Drag the Avonni Data Table

For this step, drag the Avonni Data Table component into your screen flow's left section (the larger 8/12-width column). This placement is essential for effectively displaying the account list within the component layout.


Step 6: Configure the Avonni Data Table

Here's a concise list of shortcuts for configuring the Avonni Data Table.

Open component builder

Click the 'Open Component Builder' to access and configure the Avonni Data Table properties. This is where you'll tailor the data table settings to fit your component's needs.

Configure max row selection

Set the 'Max Row Selection' of the Avonni Data Table to 1. This limits users to selecting only one row at a time, displaying a radio button instead of a checkbox for selection.

Configure the Data Source

The initial and crucial step in configuring the Avonni Data Table is setting up the Data Source. This determines the source and structure of the data in the table, which is crucial for its correct functionality and meeting data presentation requirements. For simplicity in this example, we use the 'Query Data Source', which doesn't require managing a get records collection.

We select the 'Account' object. Adjust filters if needed.

Configure the Data Mappings

Data Mappings in the Avonni Data Table are vital for accurately displaying data, particularly with variable sources like the Query data source. This feature aligns Salesforce data fields with the correct columns in the table, ensuring a precise representation of information.

Configure the columns

Optionally, each column in the Avonni Data Table can be individually configured. Click on a column within the Data Mappings section to adjust its settings. This allows you to make columns filterable, searchable, editable, and more, tailoring the table to your needs.

Configure the Avonni Data Table Header

You can configure a Header on the Avonni Data Table by expanding the Header section. Here's the various settings you can customize on the Header section:

  • Title: Set the header title.

  • Caption: Add a caption.

  • Icon: Choose an icon.

  • Icon Size: Adjust the size of the icon.

  • Button Actions: Configure button actions as needed


Step 7: Configure the right-side section

Configure the Avonni Header

  • Location: Place the Avonni Header at the top of the right section in your screen flow.

  • Functionality: Configure the Avonni Header to automatically show the account name chosen from the Avonni Data Table on the left.

  • Access Component Builder: Open the component builder for detailed settings.

  • Title Configuration: Under the Title attribute, select 'Mapped' and navigate to 'Data Table > First Selected Row > Account Name' to link the header with the selected account's name.

  • Additional Settings: Adjust any other necessary settings for the Avonni Header as required

Configure the progress indicator

We'll use the Avonni Progress Indicator to show the current status of the account you've chosen from the main Data Table on the left side of the page.

  1. Choose "Path" as the progress indicator type. This displays a linear progression of steps.

  2. Select "Linear" for the format. This makes the indicator appear as a horizontal line with milestones.

  3. Set the "Current Step" attribute:

    • Click the "Mapped" button next to "Current Step."

    • Choose the "Onboarding Progress Status" field (or your equivalent field) from the first selected row of the Data Table (select the Data Table component added previously and then first selected row attribute). This will show the user where they are in the process.

  4. Configure the Data Source:

    • Decide how you want to define the steps in the progress indicator. You have three options:

      • Manual: Enter the steps directly in the component settings.

      • Flow Variable: Use a variable from your flow to set the steps.

      • Picklist Field: Pull the steps from a picklist field on your Salesforce object.

By following these steps, you can create a dynamic Progress Indicator that visually tracks the status of your selected account.

Configure the Avonni Tabs

  • Placement: Drag the Avonni Tabs component into your screen flow's right section (4/12 width column).

  • Open Component Builder: Access the Component Builder for further configurations.

  • Create Tabs: Manually create three tabs - 'Details', 'Location', and 'Related'.

  • Set Active Tab: Designate 'Details' as the active default tab.

Configure the Avonni Formatted Value

This part of the tutorial introduces the Avonni Formatted Value component. It dynamically displays specific field information related to the account selected from the Avonni Data Table. This feature enhances user interaction by providing immediate, relevant details in the right section of our screen flow.

  • Placement: Drag the Avonni Formatted Value component to the right section of your flow, positioning it below the previously added Avonni Tabs.

  • Open Component Builder: Access the Component Builder for configurations.

  • Label Configuration: Enter the desired label for the Formatted Value component in the Label field.

  • Value Setting: Choose 'Mapped' in the value field. Select 'Avonni Data Table screen component > first selected row' and then pick the field value to display upon account selection from the Avonni Data Table in the left panel.

  • Field Type Adjustment: Modify the Type field as necessary, choosing 'currency' or 'percent' to match the type of the field value you intend to display

Configure the Avonni Map

In this section, we will configure the Avonni Map component to display the location of an account selected from the Avonni Data Table on the left side. This enhances the visual representation of account data. Follow these steps:

  • Placement: Drag the Avonni Maps component into the right section below the Avonni Tabs.

  • Component Builder: Open the Avonni Maps component builder.

  • Marker Mode: Select the single marker mode, as we aim to display only the location of the selected account.

  • Field Mapping: For each location attribute (street, city, state, postal code), link it to the first selected row of the Avonni Data Table. For instance, choose Mapped > Avonni Data Table > first selected row > Billing street to display the street. Repeat for other location-related fields.

This configuration allows for an interactive map display that updates according to the account selection, providing a more engaging user experience.

Configure the Avonni Data Table to display related opportunities

  • Purpose: Use the Avonni Data Table to dynamically show opportunities related to the account selected from the left-side data table.

  • Steps: Follow the forthcoming instructions to configure the data table for displaying these related opportunities effectively

Step 1: Create a Text formula resource

We need to create a text formula resource (from the new resource panel on your screen flow) if we want the Avonni Data Table being reactive based on the account selection made on the Data Table on the left-side section. The formula is allowing to dynamically displayed related records.

"Account.Id = '"&{!<<YOUR DATA TABLE API NAME>>.firstSelectedRow.Id}&"'"

Step 2: Drag the Avonni Data Table component

  • Select the Query Data Source

  • Select the Object you'd like to Query

  • On the Filter section, select Mapped to add the formula created just above.

  • Add any other additional settings needed for your Data Table.


Step 8: Configure Reactivity

To enable Reactive Screens by default, verify that your screen flow uses at least version v59 of the Flow API. This version ensures the necessary support for dynamic component behavior.

This step involves setting up reactivity, a critical feature that determines the display of components based on specific criteria. For instance, we configure the Avonni Tabs to only appear when a row is selected in the Avonni Data Table. This functionality enhances the dynamic interaction within the component.

Reactivity configuration is a crucial step for each Avonni Component that requires dynamic display based on certain conditions. This process ensures components react and appear in response to specific user actions or criteria within the flow.

Configure Reactivity for the Avonni Header

To ensure the Avonni Header component appears only when a row is selected in the Avonni Data Table, configure the visibility rule as follows:

  • Visibility Rule Setup:

    • Condition: 'All Conditions are met'

    • Specify: 'Header > FirstSelectedRowKeyValue IS NULL'

    • Set to: 'False'

  • Result: With this rule, the Avonni Header will appear only when a row in the Data Table is selected.

Configure Reactivity for the Avonni Tabs

To ensure the Avonni Tabs component appears only when a row is selected in the Avonni Data Table, configure the visibility rule as follows:

  • Visibility Rule Setup:

    • Condition: 'All Conditions are met'

    • Specify: 'Data Table > FirstSelectedRowKeyValue IS NULL'

    • Set to: 'False'

  • Result: With this rule, the Avonni Tabs will appear only when a row in the Data Table is selected.

Configure Reactivity for the Avonni Map

To ensure the Avonni Map component appears only when a row is selected in the Avonni Data Table AND the Avonni Tabs active value EQUAL 'location", configure the visibility rule as follows:

Visibility Rule Setup:

  • Condition: 'All Conditions are met'

  • Specify: 'Data Table > FirstSelectedRowKeyValue IS NULL'

  • Set to: 'False'

And add another condition:

  • Specify: 'Tabs > activeTabValue EQUAL

  • Set to: 'location'

Result: With this rule, the Avonni Map will appear only when a row in the Data Table is selected and when the Location tab is active

Step 9: save and test your flow

Remember to create an when configuring a column in the Avonni Data Table to be editable. This step is essential to ensure that user changes are properly saved.

Having trouble with this tutorial? .

' On Save ' interaction
Contact Avonni support for help
Configure Max Row Selection
Configure the Data Source
Configure the Data Mappings
Configure the columns
Configure the Data Table Header
Avonni Data Table
Live Result
How to set a component to be Reactive