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
Tobias Toal 22Tobias Toal 22 

How do I set a finish location (or retURL) for a URL-based Flow in Lightning Runtime?

I have an existing Flow which opens on button-click - currentlich inside a VF-Page, to have the ability to set a finish location.
Because I have enabled Lightning Runtime for Flows in my Sping'17 Sandbox, I wanted to test it, which only works if I change the Button to call the Flows URL.
It all works fine and looks great, but it doesn't seem to accept my "retURL={!Opportunity.ID}.
(The full URL is: "/flow/Create_Contract_on_Opp_Button_Click?varOpp={!Opportunity.Id}&retURL=/{!Opportunity.Id}")

Does anyone have a solution to this yet (without writing a special APEX class for it)??

Thanks
Toby
Josh Werkmeister 1Josh Werkmeister 1
I'm having the same problem. I'm also unable to open the flow in the existing window, right now it always opens in a new tab. If I disable the Lightning Runtme for Flows and use classic mode everything works as expected.

Josh