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
  • Use Cases
  • Tutorials
  • How it Works
  • Configuration
  • Example Use Case: Creating a Contact from an Account
  • Important Considerations
  • In Summary

Was this helpful?

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

Open Flow Dialog

Last updated 1 month ago

Was this helpful?

Overview

The "Open Flow Dialog" interaction lets you launch a Salesforce Screen Flow in a modal dialog window directly from within an Avonni Dynamic Component. This provides a powerful way to incorporate interactive, multi-step processes into your user interface without requiring the user to navigate away from the current page.

Use Cases

The "Open Flow Dialog" interaction embeds a Screen Flow within your Dynamic Component. This is ideal for scenarios where you need to:

  • Guide users through a complex process.

  • Collect information in a structured way.

  • Present a series of screens based on user input.

  • Perform actions that require user interaction before continuing with the main component's logic.

(Key Difference: Use "Open Flow Dialog" for Screen Flows with UI. Use the separate "" interaction to run Autolaunched Flows in the background.)

Tutorials

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


How it Works

  1. User Action: The user interacts with the component (e.g., clicks a button).

  2. Dialog opens: The "Open Flow Dialog" interaction opens a modal dialog window.

  3. Screen Flow Executes: The specified Screen Flow runs within the dialog window.

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

  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. Dialog Closes: The modal window closes when the Flow finishes (or the user closes the dialog).

  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 Dialog" interaction:

  1. Select the Component: Choose the Avonni component that will trigger the Flow (e.g., a Button).

  2. Add the Interaction: In the component's properties panel, find the section for configuring "Actions" or "Interactions." Add a new action and select the "Open Flow Dialog" type.

  3. Configure the Settings:

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

    • Flow Input Variables (Optional):

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

      • Value: The value you want to pass to the input variable. This can be a static value, a dynamic value from the component (e.g., a selected row's ID), or a resource.

Important

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 the Open Flow Dialog interaction. For the Value, provide the value you want to pass to the selected input variable.

  • 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 where you want to store the value the Flow returns.

  • Modal Header: The text to display as the title of the dialog window. This can be static text or a dynamic value from a resource/field.

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

  • Size: Choose the dialog window size (Small, Medium, Large).

  • On Finish (Optional): Configure actions to occur when the Flow completes successfully. Everyday use cases include displaying a toast message or refreshing data.

  • On Close (Optional): Configure actions to occur when the user closes the dialog window (regardless of whether the Flow finished).

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


Example Use Case: Creating a Contact from an Account

Imagine you have an Avonni Data Table displaying Accounts. You want to add a button to each row that, when clicked, opens a Screen Flow to create a new related Contact.

  1. Create the Screen Flow

    • Create a new Screen Flow in Salesforce Setup.

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

    • Add screen elements to collect Contact information (First Name, Last Name, Email, etc.).

    • Add a "Create Records" element to create a new Contact, setting the AccountId field to the value of the AccountId input variable.

    • (Optional) Add an output variable, for instance, to return the newly created Contact ID.

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

  2. Add a Data Table Component: Add an Avonni Data Table component to your Dynamic Component, and configure it to display Accounts.

  3. Add a Button (Row Action): Add a Button component as a row action to the Data Table.

  4. Configure the "Open Flow Dialog" Interaction

    • Select the Button component (the row action).

    • Add an "Open Flow Dialog" interaction.

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

    • Flow Input Variables:

      • Name: AccountId

      • Value: Record: Account ID (This passes the ID of the selected Account to the Flow).

    • Modal Header: Set to 'Create new Contact'

    • On Finish: Add a "Show Toast" action to confirm the Contact creation, and refresh your query table to see the new contact appear.

  5. Test: Save and test. Clicking the button in a Data Table row should now open your Screen Flow in a dialog, pre-populated with the Account ID.


Important Considerations

  • Screen Flows Only: The "Open Flow Dialog" interaction only works with Screen Flows, not autolaunched Flows.

  • Input/Output Variable Names: The API names of your input and output variables must match strictly between the Flow and the "Open Flow Dialog" configuration.

  • Modal Behavior: The Flow runs within a modal dialog window. Users must complete or close the Flow before interacting with the rest of the page.


In Summary

The "Open Flow Dialog" interaction is a powerful tool for launching Screen Flows directly within your Avonni Dynamic Components. It provides a user-friendly way to incorporate complex, multi-step processes into your applications. You can create seamless interactions between your components and Flows by carefully configuring input and output variables.

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