LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Topics
      • Undo / Redo
      • Copy and Paste
      • Keyboard Shortcut
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Overview
  • Tutorials
  • How it Works
  • Configuration
  • Example Use Case: Updating Contact Information Inline
  • Important Considerations
  • In Summary

Was this helpful?

  1. Component Builder
  2. Data & Interactions
  3. Interactions

Open Flow Panel

Last updated 1 month ago

Was this helpful?

The "Open Flow Panel" interaction allows you to embed a Salesforce Screen Flow directly within your Avonni Dynamic Component, displayed as a panel within the component's area, rather than in a separate modal dialog. This seamlessly integrates interactive, multi-step processes into your user interface.

Overview

The "Open Flow Panel" interaction hosts a Screen Flow inline within your Dynamic Component. This is ideal for scenarios where you want:

  • A guided, step-by-step process that's part of the main page layout, not a separate popup.

  • The flow is to be visible alongside other components on the page.

  • A more integrated experience than a modal dialog provides.

Key Difference from "Open Flow Dialog"

The "Open Flow Panel" displays the Screen Flow within the component's layout as a panel. The "Open Flow Dialog" displays the Screen Flow in a modal dialog window overlaying the page. Both are for Screen Flows (Flows with UI), not auto-launched Flows.

Tutorials

See practical examples and learn how to implement specific scenarios using this interaction:

How it Works

  1. User Action (Optional): The user might interact with a component (e.g., click a button) to trigger the panel. However, you could also configure the panel to display the flow on load.

  2. Panel Appears: The "Open Flow Panel" interaction makes the panel area within the component visible.

  3. Screen Flow Executes: The specified Screen Flow runs within the panel.

  4. User Interaction with Flow: The user interacts with the Screen Flow's screens, providing input and making choices, all within the panel.

  5. Data Passing (Optional): You can pass data from the Dynamic Component to the Flow as input variables.

  6. Output (Optional): The Flow can return data to the Dynamic Component as output variables.

  7. Panel Remains Open/Closes: The panel remains open until the Flow finishes, or you can configure actions to control its visibility.

  8. Post-Execution Actions (Optional): You can configure actions to occur after the Flow finishes (e.g., display a toast message, refresh data).

Configuration

To configure the "Open Flow Panel" interaction:

  1. Select the Component: Choose the Avonni component that will host the Flow panel (or trigger its display).

  2. Add the Interaction: In the component's properties panel, find "Actions" or "Interactions." Add a new action, selecting "Open Flow Panel."

  3. Configure the Settings:

    • Flow API Name: Select the API name of the Screen Flow you want to embed.

    • Flow Input Variables (Optional):

      • Name: The API name of the input variable in your Screen Flow. This list shows variables already defined in your Screen Flow and marked as "Available for Input". You must create these input variables in your Flow before configuring this interaction.

      • Value: The value to pass to the selected input variable. This can be static, dynamic (from the component), or a resource.

    • Output Variables (Optional):

      • Name: The API name of the output variable in your Screen Flow.

      • Resource Name: The name of the resource (variable) in your Dynamic Component to store the returned value.

    • Panel Header (Optional): Set the header of the flow panel.

    • Accessible Description (Optional): Provide a description for screen readers.

    • On Finish (Optional): Configure actions to occur when the Flow completes successfully (e.g., show a toast, refresh data, hide the panel).

    • On Close (Optional): Configure actions to occur if the user closes the panel (this might or might not be possible depending on how you configure the panel and Flow).

    • On Error (Optional): Configure actions to occur if the Flow encounters an error.

Example Use Case: Updating Contact Information Inline

Imagine you have a Data Table displaying Contacts. You want users to update a Contact's Status directly from the table, without navigating to a separate edit page.

  1. Create the Screen Flow:

    • Create a new Screen Flow.

    • Add an input variable named ContactId (Text type).

    • Add a "Get Records" element to retrieve the Contact record based on ContactId.

    • Add a Screen element with a picklist (or other input) to allow the user to select a new Status.

    • Add an "Update Records" element to update the Contact's Status field.

    • Activate the Flow. Note the Flow's API Name.

  2. Add a Data Table Component: Add an Avonni Data Table configured to display Contacts to your dynamic component.

  3. Add a Button (Row Action): Add a Button component as a row action to the Data Table. This button will trigger the Flow Panel.

  4. Configure the "Open Flow Panel" Interaction:

    • Select the Button component (the row action).

    • Add an "Open Flow Panel" interaction.

    • Flow API Name: Enter the API name of your Screen Flow.

    • Flow Input Variables:

      • Name: ContactId

      • Value: @ThisItem.Id (This passes the ID of the selected Contact to the Flow).

    • On Finish: Add actions to display a success message (Show Toast) and refresh the Data Table to show the updated status.

  5. Test: Save and test. Clicking the button in a Data Table row should now display your Screen Flow in a panel, allowing the user to update the Contact's status directly within the Data Table's context.

Important Considerations

  • Screen Flows Only: The "Open Flow Panel" interaction only works with Screen Flows.

  • Input/Output Variable Names: The API names must match exactly.

  • Panel Visibility: Carefully consider how the panel's visibility is controlled. You might want to use the "On Finish" action to hide the panel after the Flow completes.

  • Layout: Consider the layout of your Dynamic Component and how the panel will fit within it.

In Summary

The Open Flow Panel is a valuable interaction that seamlessly embeds Screen Flows within your Dynamic Components, enhancing user interaction and streamlining workflows. By leveraging input and output variables, you can create a dynamic data exchange between the component and the embedded Flow.

How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow