function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
D VelD Vel 

Refresh the page after the flow complete

I have an auto launched flow in lightning that updates the Status of the Case to be closed when the button is clicked. The flow is like below 
User-added image
I am calling the flow through the Detail Page Button using the URL like
/flow/Close_Case_Autolaunched?recordId={!Case.Id}&retURL={!Case.Id}
With the return URL set after the flow completed it does return back to the Page but the page is not refreshed it just shows old status and when manually do a refresh it shows the Closed status. The flow does update the record but but the page is not being refreshed. How can we handle this
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

You can create the sample lightning component and place it on the page which will refresh the page whenever you open the record so that you will get the recent data.

Sample code:https://developer.salesforce.com/docs/component-library/bundle/force:refreshView

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri