I currently have a flow, which calls an apex class on completion.
This class changes my Status/Path of the lead.
I want to refresh the path (lighting component), when my flow finishes or when the apex class is ran.
How can this be achieved?
It could be done by using platform events. Let's assume, you have a lighting component flow starting point. High level of steps are listed as above:
lightning:empApicomponent to subscribe to platform events
Startedin this case show spinner for a user, that process is performing on background
lightning:empApiand refresh view as necessary.
topics that are useful: How to use Platform Event in lightning by using lightning:empApi Emp API