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
Chuck M RohllfChuck M Rohllf 

Conditional Finish location for Visual Flow

I currently have a Visual Flow that is launched by a Custom Button:

{!$Site.BaseUrl}/apex/FlowDesigner_Start_NB_Note_Flow?&VarAccountId={!Account.Id}

The button calls on a custom VF Page where the finish location is set - it brings the user back to the Account where the button was clicked from:
 
<apex:page showHeader="False" sidebar="False">
  <flow:interview name="NB_Note_Flow" finishLocation="/{!$CurrentPage.parameters.VarAccountId}">
  <body onload="moveTo(0,0); resizeTo(900,400);">
  </body>
  </flow:interview>
</apex:page>

Everything currently works as originally intended.  What I'd like to do is keep the current finish location as a default, but add an additional finish location if a record is created (in a custom object) through the flow.  This record can be referenced by a variable in the flow, {!DealerProspectVar}.  Is this something that can be done?  Any help is greatly appreciated!

 
Chuck M RohllfChuck M Rohllf
I've seen similar questions in these forums, but can't find anything pertaining to conditional finish locations.  Any guidance will be huge!  Thanks!