Refresh All Queries

Overview

The Refresh All Queries interaction is handy because it refreshes all query components on your current screen flow or page. This ensures that all components always display the latest information.

Important Note: The "Refresh All Queries" interaction targets components configured with a Query Data Source. If a component relies on a Variable Data Source, this action will not refresh its data.


Common Use Case

Imagine you have an Avonni Metric component displaying statistics about opportunities. When a user creates a new opportunity or modifies an existing one using an Avonni Data Table, you want the metric to update immediately to show accurate figures. The Refresh All Queries interaction makes this effortless.


Settings

Flow Scope

  • Enabled: The refresh event will be confined to the current flow, ensuring only relevant components are updated.

  • Disabled (Default): The event will propagate through all flows currently loaded on the page, refreshing all queries within those flows.

Exclude Self

  • Enabled: The component triggering the refresh (e.g., the Data Table where the change was made) will not refresh its data query.

  • Disabled (Default): All queries, including the one associated with the triggering component, will be refreshed.


How It Works

  1. Add the "Refresh All Queries" interaction to the desired component (e.g., a button or a successful record update action in the Data Table).

  2. Configure the settings based on your needs (Flow Scope and Exclude Self).

  3. When the interaction is triggered, all eligible components in the flow (or the entire application, depending on your settings) will automatically refresh their data queries, ensuring a consistent and accurate view of your information.


Important Considerations

  • Use this interaction strategically. Refreshing all queries can be resource-intensive, so consider whether it's necessary for your specific scenario.

  • If you only need to update a specific component, consider using the "Refresh Query" interaction instead.

  • Experiment with the settings to find the optimal configuration for your flow's behavior.

By leveraging the Refresh All Queries interaction, you can ensure that your users always have the latest information at their fingertips, creating a more seamless and responsive experience.

Last updated