Enabling auto-refresh for queries after the Flow Dialog ends
Overview
This tutorial teaches you to refresh queries once a flow dialog completes automatically. This feature updates data sources immediately after a flow execution, improving data accuracy and user experience.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252Fxk0eBr89MCzw40b32VhH%252F2023-11-20_21-03-29%2520%281%29.gif%3Falt%3Dmedia%26token%3Db8b3156d-86a6-44c1-b593-b09d815fa387&width=768&dpr=4&quality=100&sign=d5fcda15&sv=1)
This tutorial is designed to work specifically with Avonni Components with integrated Query Data Source.
Interactive Step by Step guide
Step 1: Integrate Query Data Source
Click the "Open Component Builder" to access all the component settings.
Start by incorporating the Query Data source in the Avonni Components into your Salesforce Flow.
To finish this tutorial, ensure you use the Query Data Source with your component.
Step 2: Configure Your Query
Customize your query parameters to suit the data you wish to retrieve and manipulate.
Step 3: Initiate Action Creation
Create an action button or a row action. This will be the user's entry point for triggering the flow.
Step 4: Access the Interaction Panel
Navigate to the interaction panel to set up the flow's interactive elements.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252F3K2xpNTELiCFOh1tymYB%252F2023-11-04_12-34-37.png%3Falt%3Dmedia%26token%3D5a27de0e-48e4-4d83-b3b4-e189a899152e&width=768&dpr=4&quality=100&sign=5706f4bf&sv=1)
Step 5: Create an Interaction
Proceed to create a new interaction that will act upon the action button or menu you've just made.
Step 6: Define the Interaction Target
Assign the previously designed (in step 3) action button or menu as the target for this interaction.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FJRheqrPyab6yuZ0QgPES%252F2023-11-04_12-35-27.png%3Falt%3Dmedia%26token%3Dfa6069f1-a9ea-4c28-b72a-4503140c1a32&width=768&dpr=4&quality=100&sign=b5e6f29b&sv=1)
Step 7: Choose Interaction Type
For the interaction type, opt for "Open Flow Dialog," which prompts a new flow to open upon activation.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FZ1sRs5YFcqMNRKPFrjoo%252F2023-11-04_12-36-04.png%3Falt%3Dmedia%26token%3D4c9886a0-a8f9-40e3-95f1-2402faf32dd9&width=768&dpr=4&quality=100&sign=f0dac70&sv=1)
Step 8: Select the Desired Flow
Identify and select the particular flow that this interaction should launch.
Step 9: Assign Input Variables
If necessary, relay any required input variables to the flow that is being opened.
Step 10: Configure 'On Finish' Interaction
After setting up the main flow, click the "On Finish" button to define what happens once the flow concludes.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FNfrUnbC1nyLQH50ttmuS%252F2023-11-04_12-36-49.png%3Falt%3Dmedia%26token%3Dc1f1a315-e2c7-4c9e-9672-2412f142f6cf&width=768&dpr=4&quality=100&sign=7e2e975a&sv=1)
Step 11: Set 'On Finish' Interaction Type
For the 'On finish' interaction, select "Refresh Query." This ensures that your query automatically updates when the flow dialog ends.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FZUjz2IcjYjSAdgs8ryC6%252F2023-11-04_12-37-29.png%3Falt%3Dmedia%26token%3D69637190-f062-48ab-996a-e3b796aee190&width=768&dpr=4&quality=100&sign=eafde53e&sv=1)
Conclusion: With these steps completed, your Salesforce Flow is now equipped to refresh queries automatically, streamlining your processes with Avonni Components. This function is pivotal for maintaining current information flow throughout your Salesforce environment.
Last updated