Automation: Auto Refresh in custom flows

Automation: Auto Refresh in custom flows


This page covers:

  • How to add AutoRefresh to your custom flows


How to add AutoRefresh to your custom flows

Auto refresh will work only for the below LWCs

  1. ManageIndicators

  2. AddResults

  3. ManageLogFrames

  4. SetTargets

  5. ActivityTracking

  6. SubmissionResponseForm

  1. In your custom flow, click on Toggle -> New resource -> create a variable “recordId” , Data type = text. Mark “Available for input” checkbox as TRUE and click save.

  2. Add a screen element -> search for “fireAutoRefreshEvent” component and drag and drop it on the screen; Or add it to your current screen.

  3. Click on the component and fill the fields on the right side i.e API name, Component names, host record Id.

    1. Component name: Name of the LWC component you wish to refresh; Add the exact component name mentioned in the note above.

    2. If you need to use multiple LWCs, then use comma(,) as a separator.

    3. Host record ID: select the variable we created in step 1.

  4. There MUST be a screen/element after the “fireAutoRefreshEvent” component. If “fireAutoRefreshEvent” component is the last screen in the flow, below error will be displayed.

    image-20250305-035219.png

The FireAutoRefreshEvent is a Lightning Web Component (LWC) designed to be used in Screen Flows. It cannot be called directly in Record-Triggered Flows, as Record-Triggered Flows do not support user interface components like LWCs.