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
Bob_zBob_z 

flow button link return back to record

I have created a new opportunity button to create products. The button is working, but it keeps returning back to the beginning of the flow.

How would I change that behavor in the link to returning back to the opportunity record?

https://acme.lightning.force.com/flow/Create_Yushin_Products?recordId={!Opportunity.Id}

User-added image
Best Answer chosen by Bob_z
Dominic McCarthyDominic McCarthy
Hi Bob,
If you put the following at the end of your URL: &retURL=%2F{!Opportunity.Id} it will return to the Opportunity record. 
Hope that works or my first answer here is a dud!
Thank you!
Yours,
Dominic.

All Answers

Dominic McCarthyDominic McCarthy
Hi Bob,
If you put the following at the end of your URL: &retURL=%2F{!Opportunity.Id} it will return to the Opportunity record. 
Hope that works or my first answer here is a dud!
Thank you!
Yours,
Dominic.
This was selected as the best answer
Bob_zBob_z
Thank you Dominic, That worked! for some reason I thought the return would be different because it was a flow. Now I feel silly lol.
Dominic McCarthyDominic McCarthy
No problem - glad I could help! :)