Demo embedding Flow (via Lightning Component) in Lightning Record Page and it reloading when the record is updated.
This project is a new take on my earlier project Reloadable Visualforce Lightning Component, whose purpose was to provide a way to display a Flow on a Lightning Record Page and have that Flow dynamically sync itself with any data changes made on the page.
That first project cobbled together a myriad of concepts, and although functional, it still didn't render the Flow in Lightning Runtime.
With Winter '18
we now have the <iframe>
or Visualforce page to embed our Flow.
You may install the unmanaged code from GitHub and make any desired adjustments.
This will add a Lightning Component named ReloadableFlowCmp
to your org (label in App Builder is Flow - Reloadable).
Your_Awesome_Flow
). The Flow should have an input variable named recordId
of type text
that the component will pass to the Flow based on the record being viewed.