There are many ways to launch screen flows. For instance, if you want to run the flow for a specific record, it is possible to place the flow on the lightning record page. When the flow ends, you can directly see the record changes that the flow did. However, if there are other components on the page, they may not show the correct data. Therefore, you might want to refresh the page to reload all the components.
In this post, you can find a Lightning component that refreshes the page. You can call it as a local action from screen flows in order to refresh the page and see the updated data. It works as if someone is hitting F5 whenever you call this action. It refreshes the current page.
Here is a simple example.
Let's assume that there are two different screen flows on the case record page. First flow shows a data table of open cases of the contact and gives the user option to close them with one click. Second flow gives the user option to change the contact of the case.
When the user changes the contact using the second flow, you can see that the case record is updated. Contact field immediately changes on the layout. However, the first flow with the data table doesn't refresh. Therefore, it displays the old contact's open cases, which is an issue.
How to Use the Component
1- Install the component using the installation links below.
2- Add a new action to your flow and search for ReloadPage, this is the name of the component that you installed.
As mentioned before, this component refreshes the current page, just like hitting F5. Therefore, there is no configuration at all.
As you can see, after changing the contact, the entire page refreshes. Therefore, the data table flow runs again and displays the correct data.
Use this link to install in production or developer edition environments.
Use this link to install in sandbox environments.