1

I'm using Visual Workflow embedded in a VF page from a button on an Opp, and I want the user to be redirected back to that same Opp record when the Flow completes. The page is using the standard Opportunity controller.

I've seen this technique for doing the redirect: but I'd prefer to not have to create a custom controller.

I expect there's a way to do this, given that the record exists before the Flow is run. Could I use URLFOR like shown here? If so I'm not finding the right syntax. Can anyone help out here?

0

Figured this out. Quite simple. Assuming you're starting from an opp, and the VF page uses a standard controller:

<flow:interview name="myFlow" finishLocation="/{!Opportunity.Id}">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.