For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refresh All Queries

The Refresh All Queries interaction reloads the data behind the page's components so they show the latest records.

Overview

The Refresh All Queries interaction triggers a refresh of the data queries executed by your dynamic components. Use it after an action that modifies data — create, update, or delete — to ensure the components on the page display up-to-date information.

This is the interaction most commonly chained after record operations: without it, a Data Table or list may keep showing stale rows until the user manually reloads the page.


Configuration

By default, the interaction refreshes the data queries of all dynamic components on the page. Two options let you narrow that scope:

  • Refresh Current Component Only: If enabled, only the data queries within the current dynamic component are refreshed. If disabled (or not set), all dynamic components on the page refresh. Use this to limit the refresh impact and improve performance when only one component needs updating.

  • Exclude Triggering Component: If enabled, the component that triggers the refresh does not refresh its own data query. Use this when the triggering component has already updated its state locally and does not need to re-fetch data.

Refreshing a Specific Component

If you need to refresh one particular component (rather than the whole page or the whole current component), use the Refresh Query interaction instead — it targets components by API name.


Example

A typical chain on a "Delete" button:

  1. Delete Record: Removes the record from Salesforce.

  2. On Success -> Refresh All Queries: The deleted row disappears from every list on the page.

  3. On Success -> Show Toast: Confirms the deletion to the user.

If the delete only affects data shown inside the current Dynamic Component, enable Refresh Current Component Only so unrelated components on the page aren't re-queried unnecessarily.

Last updated

Was this helpful?