+ Start a Discussion
Swiderski, ErikSwiderski, Erik 

Visualforce page controller for finish location on multiple flows

I have a visualforce page with a flow embeded in it. Part of this flow creates a task, and I wanted the flow to end on the new task created. I accomplished this by creating a page controller to get the task ID and I have the flow end on it. It works great.

However, inside this first flow, there is an option that, when selected, sends the user into a second flow. The second flow also creates a task. Is there a way I can program the controller to end on the task created by the second flow if they go into the second flow, but end on the first task if they don't end up going to the second flow?