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
Barry Taylor SwishCleanBarry Taylor SwishClean 

Visual Force Page with a Flow Embedded

Hi Everyone,

I have built a very flow that incorporates our business logic and what I would like to do is leverage some of the Visualforce functionality in to give it some WOW facture for my sales team, my flow ultimately creates a new opportunity and what I want to acheive is when the flow is complete it will leave the visualforce page and open the newly created opportunity. 

I know I need to use the "FinishLocation" function however I am not sure what I need to put so that I can achevie this. Any help would be grateful 

Thank you in advance
ShashankShashank (Salesforce Developers) 
You need to fetch the newly created opportunity's Id by doing a SOQL query either from the visualforce page or through an apex plugin in the flow.